diff options
| author | 2016-11-04 16:02:47 -0400 | |
|---|---|---|
| committer | 2016-11-04 16:02:47 -0400 | |
| commit | db350d65819d73a32fcec6ca9fac139923df01d3 (patch) | |
| tree | 76ac282c3977629155d77b88892aeead1d499eae /src/modules | |
| parent | KviTopicWidget: Move existing recent topics to the end of the list (diff) | |
| download | KVIrc-db350d65819d73a32fcec6ca9fac139923df01d3.tar.gz KVIrc-db350d65819d73a32fcec6ca9fac139923df01d3.tar.bz2 KVIrc-db350d65819d73a32fcec6ca9fac139923df01d3.zip | |
FileTransferWindow: Add MIME data to right click menu for non-KDE
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/filetransferwindow/FileTransferWindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/filetransferwindow/FileTransferWindow.cpp b/src/modules/filetransferwindow/FileTransferWindow.cpp index a9c639a49..fb8e81479 100644 --- a/src/modules/filetransferwindow/FileTransferWindow.cpp +++ b/src/modules/filetransferwindow/FileTransferWindow.cpp @@ -57,6 +57,8 @@ #include <kmimetype.h> #include <kmimetypetrader.h> #include <kiconloader.h> +#else +#include <QMimeDatabase> #endif //COMPILE_KDE4_SUPPORT #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) @@ -442,6 +444,10 @@ void FileTransferWindow::rightButtonPressed(FileTransferItem * it, const QPoint tmp += "<br>"; tmp += "Mime: "; tmp += KMimeType::findByPath(szFile)->name(); +#else + tmp += "<br>"; + tmp += "Mime: "; + tmp += QMimeDatabase().mimeTypeForFile(szFile).name(); #endif //COMPILE_KDE4_SUPPORT QWidgetAction * pWaction = new QWidgetAction(m_pLocalFilePopup); |
