summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/helpers.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-26 13:16:15 -0600
commit7e09b5c2efae58399621a938de26b9675b8ba621 (patch)
treede2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/xsavers/helpers.cpp
parent159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff)
downloadtdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz
tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/xsavers/helpers.cpp')
-rw-r--r--tdescreensaver/xsavers/helpers.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/tdescreensaver/xsavers/helpers.cpp b/tdescreensaver/xsavers/helpers.cpp
new file mode 100644
index 00000000..e55cf98c
--- /dev/null
+++ b/tdescreensaver/xsavers/helpers.cpp
@@ -0,0 +1,38 @@
+#include "helpers.h"
+
+#include <kapplication.h>
+
+void min_width(TQWidget *w) {
+ w->setMinimumWidth(w->sizeHint().width());
+}
+
+void fixed_width(TQWidget *w) {
+ w->setFixedWidth(w->sizeHint().width());
+}
+
+void min_height(TQWidget *w) {
+ w->setMinimumHeight(w->sizeHint().height());
+}
+
+void fixed_height(TQWidget *w) {
+ w->setFixedHeight(w->sizeHint().height());
+}
+
+void min_size(TQWidget *w) {
+ w->setMinimumSize(w->sizeHint());
+}
+
+void fixed_size(TQWidget *w) {
+ w->setFixedSize(w->sizeHint());
+}
+
+TDEConfig *klock_config()
+{
+ TQString name( kapp->argv()[0] );
+ int slash = name.findRev( '/' );
+ if ( slash )
+ name = name.mid( slash+1 );
+
+ return new TDEConfig( name + "rc" );
+}
+