diff options
| author | 2016-04-21 03:39:06 +0100 | |
|---|---|---|
| committer | 2016-04-21 13:44:09 +0100 | |
| commit | 0a758e4bd61367087fbbbaa5ef0dbe8b156f0850 (patch) | |
| tree | 82a5494faf6f91375c9efcef7e05ac1dd8a11818 /src/modules/filetransferwindow | |
| parent | CMake: Fix build on cygwin (diff) | |
| download | KVIrc-0a758e4bd61367087fbbbaa5ef0dbe8b156f0850.tar.gz KVIrc-0a758e4bd61367087fbbbaa5ef0dbe8b156f0850.tar.bz2 KVIrc-0a758e4bd61367087fbbbaa5ef0dbe8b156f0850.zip | |
FileTransferWindow: remove <nobr> and decrease tooltip padding
Diffstat (limited to 'src/modules/filetransferwindow')
| -rw-r--r-- | src/modules/filetransferwindow/FileTransferWindow.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/filetransferwindow/FileTransferWindow.cpp b/src/modules/filetransferwindow/FileTransferWindow.cpp index 255c9baf4..35d28ceda 100644 --- a/src/modules/filetransferwindow/FileTransferWindow.cpp +++ b/src/modules/filetransferwindow/FileTransferWindow.cpp @@ -413,29 +413,28 @@ void FileTransferWindow::rightButtonPressed(FileTransferItem *it,const QPoint &p { m_pLocalFilePopup->clear(); - QString tmp = "<b>file:/"; + QString tmp = "<b>"; + tmp += "file:/"; tmp += szFile; tmp += "</b><br>"; QFileInfo fi(szFile); if(fi.exists()) { - tmp += "<nobr>"; tmp += __tr2qs_ctx("Size: %1","filetransferwindow").arg(KviQString::makeSizeReadable(fi.size())); - tmp += "</nobr>"; } #ifdef COMPILE_KDE4_SUPPORT - tmp += "<br><nobr>Mime: "; + tmp += "<br>"; + tmp += "Mime: "; tmp += KMimeType::findByPath(szFile)->name(); - tmp += "</nobr>"; #endif //COMPILE_KDE4_SUPPORT QWidgetAction * pWaction = new QWidgetAction(m_pLocalFilePopup); QLabel * l = new QLabel(tmp, m_pLocalFilePopup); QPalette p; l->setStyleSheet("background-color: " + p.color(QPalette::Normal, QPalette::Mid).name()); - l->setContentsMargins(10,10,10,10); + l->setContentsMargins(5,5,5,5); pWaction->setDefaultWidget(l); m_pLocalFilePopup->addAction(pWaction); @@ -495,6 +494,7 @@ void FileTransferWindow::rightButtonPressed(FileTransferItem *it,const QPoint &p } i->transfer()->fillContextPopup(m_pContextPopup); + m_pContextPopup->addSeparator(); } } |
