diff options
author | Slávek Banko <[email protected]> | 2013-08-21 21:31:42 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2013-08-21 21:31:42 +0200 |
commit | dc35d8eaac302891fa34128d0e2e148b4c409544 (patch) | |
tree | 7e7196abc428ea90299b38bde8b04ca24bb1c948 /src/klcddimmer.cpp | |
parent | e6a44e6a474364c8743c97cd87dcf0b47879324f (diff) | |
download | klcddimmer-dc35d8eaac302891fa34128d0e2e148b4c409544.tar.gz klcddimmer-dc35d8eaac302891fa34128d0e2e148b4c409544.zip |
Initial TQt conversion
Diffstat (limited to 'src/klcddimmer.cpp')
-rw-r--r-- | src/klcddimmer.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/klcddimmer.cpp b/src/klcddimmer.cpp index 971c7c1..f5a8e13 100644 --- a/src/klcddimmer.cpp +++ b/src/klcddimmer.cpp @@ -18,7 +18,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include <qlcdnumber.h> +#include <ntqlcdnumber.h> #include <kglobal.h> #include <klocale.h> #include <kconfigdialog.h> @@ -28,8 +28,8 @@ #include <kdatetbl.h> // for KPopupFrame #include <kiconloader.h> #include <kaboutapplication.h> -#include <qlabel.h> -#include <qframe.h> +#include <ntqlabel.h> +#include <ntqframe.h> #include <kdebug.h> #ifdef HAVE_CONFIG_H @@ -43,7 +43,7 @@ #include "klcddimmerapplet.h" -klcddimmer::klcddimmer(const QString& configFile, Type type, int actions, QWidget *parent, const char *name) +klcddimmer::klcddimmer(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name) : KPanelApplet(configFile, type, actions, parent, name), mBrightnessChooserFrame(0) { @@ -51,14 +51,14 @@ klcddimmer::klcddimmer(const QString& configFile, Type type, int actions, QWidge ksConfig = config(); /* - QLCDNumber *w = new QLCDNumber(this); + TQLCDNumber *w = new TQLCDNumber(this); w->display(42); */ // this is the popup windows that is shown when the left button is pressed mBrightnessChooserFrame = new KPopupFrame(this); - //mBrightnessChooserFrame = new QWidget - // (this, "klcddimmer popup", WStyle_Customize | WType_Popup | Qt::WStyle_DialogBorder); + //mBrightnessChooserFrame = new TQWidget + // (this, "klcddimmer popup", WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder); chooser = new BrightnessChooserImpl(mBrightnessChooserFrame); mBrightnessChooserFrame->setMainWidget(chooser); mBrightnessChooserFrame->resize(chooser->size()); @@ -68,8 +68,8 @@ klcddimmer::klcddimmer(const QString& configFile, Type type, int actions, QWidge initContextMenu(); /* - QFrame *w = new QFrame(this); - valueLabel = new QLabel(w); + TQFrame *w = new TQFrame(this); + valueLabel = new TQLabel(w); valueLabel->setText(chooser->getValue()); */ @@ -78,7 +78,7 @@ klcddimmer::klcddimmer(const QString& configFile, Type type, int actions, QWidge // klcddimmerView->brightnessIcon->setPixmap(SmallIcon("klcddimmer")); klcddimmerView->setBrightnessLevel(chooser->getValue()); - //klcddimmerView->resize( QSize(122, 48).expandedTo(minimumSizeHint()) ); + //klcddimmerView->resize( TQSize(122, 48).expandedTo(minimumSizeHint()) ); mainView->show(); @@ -157,7 +157,7 @@ int klcddimmer::heightForWidth( int width ) const } -void klcddimmer::resizeEvent(QResizeEvent *e) +void klcddimmer::resizeEvent(TQResizeEvent *e) { klcddimmerView->resize(this->width(),this->height()); } @@ -174,7 +174,7 @@ void klcddimmer::initContextMenu() setCustomMenu(mContextMenu); } -void klcddimmer::mousePressEvent(QMouseEvent *e) +void klcddimmer::mousePressEvent(TQMouseEvent *e) { if ( e->button() == LeftButton ) { @@ -201,7 +201,7 @@ void klcddimmer::valueUpdate() extern "C" { - KPanelApplet* init( QWidget *parent, const QString& configFile) + KPanelApplet* init( TQWidget *parent, const TQString& configFile) { KGlobal::locale()->insertCatalogue("klcddimmer"); return new klcddimmer(configFile, KPanelApplet::Normal, |