From e05047be2bcacf0a5f0f85373ec8aadfbfa073e3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 25 Apr 2020 00:25:06 +0900 Subject: Use TDE dialog instead of TQ dialog for selecting an application custom icon. Signed-off-by: Michele Calgaro --- src/CMakeLists.txt | 2 +- src/tqtraylabel.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f52b7ba..6757a28 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -31,7 +31,7 @@ tde_add_executable( tdedocker AUTOMOC tdedocker.cpp main.cpp tqtraylabel.cpp trace.cpp traylabelmgr.cpp util.cpp LINK - tdecore-shared tdeui-shared DCOP-shared + tdecore-shared tdeio-shared tdeui-shared DCOP-shared ${XMU_LIBRARIES} ${XPM_LIBRARIES} DESTINATION ${BIN_INSTALL_DIR} diff --git a/src/tqtraylabel.cpp b/src/tqtraylabel.cpp index 61ace00..0b99f7e 100644 --- a/src/tqtraylabel.cpp +++ b/src/tqtraylabel.cpp @@ -22,7 +22,6 @@ // Include all TQt includes before X #include #include -#include #include #include #include @@ -32,11 +31,12 @@ #include #include -#include #include +#include #include -#include + #include +#include #include #include #include @@ -949,8 +949,8 @@ void TQTrayLabel::setCustomIcon(void) while (true) { // Nag the user to give us a valid icon or press cancel - icon = TQFileDialog::getOpenFileName(); - if (icon.isNull()) return; // user cancelled + icon = KFileDialog::getOpenFileName(); + if (icon.isEmpty()) return; // user cancelled if (!TQPixmap(icon).isNull()) break; TRACE("Attempting to set icon to %s", icon.local8Bit()); KMessageBox::error(this, i18n("%1 is not a valid icon").arg(icon), i18n("TDEDocker")); -- cgit v1.2.1