diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-28 02:56:18 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-28 03:17:51 +0200 |
commit | cf4f444abb13028e2378e300f8c6d3a44f699f5d (patch) | |
tree | 1bd57816a1e63b405b64ec901687f7f126b9b5d2 /kshutdownlockout | |
parent | 75346893bd6bbd2760dc36e95226515f42ed3f59 (diff) | |
download | kshutdown-cf4f444abb13028e2378e300f8c6d3a44f699f5d.tar.gz kshutdown-cf4f444abb13028e2378e300f8c6d3a44f699f5d.zip |
Initial TQt conversion
Diffstat (limited to 'kshutdownlockout')
-rw-r--r-- | kshutdownlockout/lockout.cpp | 22 | ||||
-rw-r--r-- | kshutdownlockout/lockout.h | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/kshutdownlockout/lockout.cpp b/kshutdownlockout/lockout.cpp index 6fd7085..af336ea 100644 --- a/kshutdownlockout/lockout.cpp +++ b/kshutdownlockout/lockout.cpp @@ -33,9 +33,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "lockout.h" -#include <qlayout.h> -#include <qtoolbutton.h> -#include <qtooltip.h> +#include <ntqlayout.h> +#include <ntqtoolbutton.h> +#include <ntqtooltip.h> #include <dcopclient.h> #include <kaction.h> @@ -57,7 +57,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. extern "C" { - KDE_EXPORT KPanelApplet *init(QWidget *parent, const QString& configFile) + KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile) { // share i18n with KShutDown KGlobal::locale()->insertCatalogue("kshutdown"); @@ -68,7 +68,7 @@ extern "C" // public -Lockout::Lockout(const QString& configFile, QWidget *parent) +Lockout::Lockout(const TQString& configFile, TQWidget *parent) : KPanelApplet( configFile, KPanelApplet::Normal, @@ -91,14 +91,14 @@ Lockout::Lockout(const QString& configFile, QWidget *parent) pm_actions->insertSeparator(); _configureKShutDownAction->plug(pm_actions); - QVBoxLayout *layout = new QVBoxLayout(this); - QToolButton *button = new QToolButton(this); + TQVBoxLayout *layout = new TQVBoxLayout(this); + TQToolButton *button = new TQToolButton(this); button->setAutoRaise(true); button->setBackgroundMode(X11ParentRelative); button->setPixmap(SmallIcon("exit")); button->setPopupDelay(100); button->setMinimumSize(button->pixmap()->size()); - button->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding)); + button->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding)); connect(button, SIGNAL(clicked()), this, SLOT(slotShowKShutDown())); button->setPopup(pm_actions); @@ -113,7 +113,7 @@ Lockout::Lockout(const QString& configFile, QWidget *parent) kapp->dcopClient()->attach(); connect(kapp, SIGNAL(iconChanged(int)), SLOT(slotIconChanged())); - QToolTip::add( + TQToolTip::add( this, "<qt>" \ "<b>KShutDown</b><br><br>" + @@ -139,7 +139,7 @@ int Lockout::widthForHeight(int/* height*/) const // private -void Lockout::callKShutDown(const QCString &function) { +void Lockout::callKShutDown(const TQCString &function) { DCOPClient *client = kapp->dcopClient(); if (!client->isApplicationRegistered("kshutdown")) { // run KShutDown @@ -194,7 +194,7 @@ void Lockout::initActions() { ); } -void Lockout::runCommand(const QString &command) { +void Lockout::runCommand(const TQString &command) { pid_t pid = KRun::run(command, KURL::List()); if (!pid) KMessageBox::error(0, i18n("Could not run KShutDown!")); diff --git a/kshutdownlockout/lockout.h b/kshutdownlockout/lockout.h index faecd58..444d489 100644 --- a/kshutdownlockout/lockout.h +++ b/kshutdownlockout/lockout.h @@ -18,7 +18,7 @@ public: * @param configFile A configuration file (provided by the Kicker) * @param parent A parent widget */ - Lockout(const QString& configFile, QWidget *parent = 0); + Lockout(const TQString& configFile, TQWidget *parent = 0); /** * Destructor. @@ -42,9 +42,9 @@ private: *_logoutAction, *_rebootAction, *_shutDownAction; - void callKShutDown(const QCString &function); + void callKShutDown(const TQCString &function); void initActions(); - void runCommand(const QString &command); + void runCommand(const TQString &command); private slots: void slotCancel(); void slotConfigureKShutDown(); |