diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
commit | a1bd60b34891ccc77056c190d7871bc4b14fe654 (patch) | |
tree | 713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kmoon/kmoondlg.cpp | |
parent | 8d92c3c2a4131996726cc7b625d3cd3caec296de (diff) | |
download | tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip |
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmoon/kmoondlg.cpp')
-rw-r--r-- | kmoon/kmoondlg.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmoon/kmoondlg.cpp b/kmoon/kmoondlg.cpp index 25390ac..a2204b3 100644 --- a/kmoon/kmoondlg.cpp +++ b/kmoon/kmoondlg.cpp @@ -29,9 +29,9 @@ #include "kmoondlg.h" #include "kmoonwidget.h" -KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name) - : KDialogBase(parent, name, true, i18n("Change View"), - Ok|Cancel|Help), angle(a), north(n), mask(m) +KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *tqparent, const char *name) + : KDialogBase(tqparent, name, true, i18n("Change View"), + Ok|Cancel|Help), angle(a), north(n), tqmask(m) { TQWidget *page = new TQWidget( this ); setMainWidget(page); @@ -71,11 +71,11 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name) connect(hemitoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleHemi())); - masktoggle = new TQPushButton(hbox2); - masktoggle->setText(mask ? i18n("Switch Masking Off") : + tqmasktoggle = new TQPushButton(hbox2); + tqmasktoggle->setText(tqmask ? i18n("Switch Masking Off") : i18n("Switch Masking On")); - connect(masktoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask())); + connect(tqmasktoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask())); topLayout->addWidget(vbox); moon = new MoonWidget(page, "preview"); @@ -94,7 +94,7 @@ void KMoonDlg::angleChanged(int value) { } void KMoonDlg::help() { - kapp->invokeHelp(TQString::fromLatin1("config")); + kapp->invokeHelp(TQString::tqfromLatin1("config")); } void KMoonDlg::toggleHemi() { @@ -105,9 +105,9 @@ void KMoonDlg::toggleHemi() { } void KMoonDlg::toggleMask() { - moon->setMask(!moon->mask()); - mask = moon->mask(); - masktoggle->setText(mask ? i18n("Switch Masking Off") : + moon->setMask(!moon->tqmask()); + tqmask = moon->tqmask(); + tqmasktoggle->setText(tqmask ? i18n("Switch Masking Off") : i18n("Switch Masking On")); } |