summaryrefslogtreecommitdiffstats
path: root/src/brightnesschooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/brightnesschooser.cpp')
-rw-r--r--src/brightnesschooser.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/brightnesschooser.cpp b/src/brightnesschooser.cpp
index 2b2c282..6a55991 100644
--- a/src/brightnesschooser.cpp
+++ b/src/brightnesschooser.cpp
@@ -11,54 +11,54 @@
#include "brightnesschooser.h"
-#include <qvariant.h>
-#include <qpushbutton.h>
-#include <qlabel.h>
-#include <qslider.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <ntqvariant.h>
+#include <ntqpushbutton.h>
+#include <ntqlabel.h>
+#include <ntqslider.h>
+#include <ntqlayout.h>
+#include <ntqtooltip.h>
+#include <ntqwhatsthis.h>
/*
* Constructs a BrightnessChooser as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
-BrightnessChooser::BrightnessChooser( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
+BrightnessChooser::BrightnessChooser( TQWidget* parent, const char* name, WFlags fl )
+ : TQWidget( parent, name, fl )
{
if ( !name )
setName( "BrightnessChooser" );
- BrightnessChooserLayout = new QGridLayout( this, 1, 1, 11, 6, "BrightnessChooserLayout");
+ BrightnessChooserLayout = new TQGridLayout( this, 1, 1, 11, 6, "BrightnessChooserLayout");
- layout9 = new QGridLayout( 0, 1, 1, 0, 6, "layout9");
+ layout9 = new TQGridLayout( 0, 1, 1, 0, 6, "layout9");
- layout7 = new QHBoxLayout( 0, 0, 0, "layout7");
- spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
+ layout7 = new TQHBoxLayout( 0, 0, 0, "layout7");
+ spacer1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
layout7->addItem( spacer1 );
- layout5 = new QVBoxLayout( 0, 0, 6, "layout5");
+ layout5 = new TQVBoxLayout( 0, 0, 6, "layout5");
- valueLabel = new QLabel( this, "valueLabel" );
- valueLabel->setAlignment( int( QLabel::AlignCenter ) );
+ valueLabel = new TQLabel( this, "valueLabel" );
+ valueLabel->setAlignment( int( TQLabel::AlignCenter ) );
layout5->addWidget( valueLabel );
- brightnessSlider = new QSlider( this, "brightnessSlider" );
- brightnessSlider->setOrientation( QSlider::Vertical );
+ brightnessSlider = new TQSlider( this, "brightnessSlider" );
+ brightnessSlider->setOrientation( TQSlider::Vertical );
layout5->addWidget( brightnessSlider );
layout7->addLayout( layout5 );
- spacer1_2 = new QSpacerItem( 16, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
+ spacer1_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Minimum, TQSizePolicy::Minimum );
layout7->addItem( spacer1_2 );
layout9->addLayout( layout7, 0, 0 );
- okButton = new QPushButton( this, "okButton" );
- okButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, okButton->sizePolicy().hasHeightForWidth() ) );
+ okButton = new TQPushButton( this, "okButton" );
+ okButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)1, 0, 0, okButton->sizePolicy().hasHeightForWidth() ) );
layout9->addWidget( okButton, 1, 0 );
BrightnessChooserLayout->addLayout( layout9, 0, 0 );
languageChange();
- resize( QSize(124, 163).expandedTo(minimumSizeHint()) );
+ resize( TQSize(124, 163).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
@@ -71,7 +71,7 @@ BrightnessChooser::BrightnessChooser( QWidget* parent, const char* name, WFlags
*/
BrightnessChooser::~BrightnessChooser()
{
- // no need to delete child widgets, Qt does it all for us
+ // no need to delete child widgets, TQt does it all for us
}
/*
@@ -82,19 +82,19 @@ void BrightnessChooser::languageChange()
{
setCaption( tr2i18n( "Form1" ) );
valueLabel->setText( tr2i18n( "0" ) );
- QToolTip::add( brightnessSlider, tr2i18n( "set the brightness and click OK or press ENTER" ) );
+ TQToolTip::add( brightnessSlider, tr2i18n( "set the brightness and click OK or press ENTER" ) );
okButton->setText( tr2i18n( "&OK" ) );
- okButton->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
+ okButton->setAccel( TQKeySequence( tr2i18n( "Alt+O" ) ) );
}
void BrightnessChooser::updateBrightness()
{
- qWarning( "BrightnessChooser::updateBrightness(): Not implemented yet" );
+ tqWarning( "BrightnessChooser::updateBrightness(): Not implemented yet" );
}
void BrightnessChooser::updateValue(int)
{
- qWarning( "BrightnessChooser::updateValue(int): Not implemented yet" );
+ tqWarning( "BrightnessChooser::updateValue(int): Not implemented yet" );
}
#include "brightnesschooser.moc"