summaryrefslogtreecommitdiffstats
path: root/client/fahrenheitclient.cc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-10-18 13:32:54 +0900
committerMichele Calgaro <[email protected]>2023-10-18 13:32:54 +0900
commit3031fcead54a66aa68b0653e35ef59fbae9e442f (patch)
tree4593183ce2c50ebd1320293a03e0bfd797e9f1f4 /client/fahrenheitclient.cc
parente952c17a7ce96d686b0ad54cb8d693bf137d6759 (diff)
downloadtwin-style-fahrenheit-3031fcead54a66aa68b0653e35ef59fbae9e442f.tar.gz
twin-style-fahrenheit-3031fcead54a66aa68b0653e35ef59fbae9e442f.zip
Add cmake building files
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'client/fahrenheitclient.cc')
-rw-r--r--client/fahrenheitclient.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/client/fahrenheitclient.cc b/client/fahrenheitclient.cc
index 3269266..6bd67b2 100644
--- a/client/fahrenheitclient.cc
+++ b/client/fahrenheitclient.cc
@@ -13,11 +13,11 @@
#include <tdelocale.h>
#include <kstandarddirs.h>
-#include <ntqbitmap.h>
-#include <ntqlabel.h>
-#include <ntqlayout.h>
-#include <ntqpainter.h>
-#include <ntqtooltip.h>
+#include <tqbitmap.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqtooltip.h>
#include "fahrenheitclient.h"
@@ -132,7 +132,10 @@ FahrenheitButton::FahrenheitButton(FahrenheitClient *parent, const char *name,
setBackgroundMode(NoBackground);
setFixedWidth(16);
setCursor(arrowCursor);
- if (pixmap) setPixmap(pixmap);
+ if (!pixmap.isEmpty())
+ {
+ setPixmap(pixmap);
+ }
TQToolTip::add(this, tip);
}