summaryrefslogtreecommitdiffstats
path: root/karm/edittaskdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /karm/edittaskdialog.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'karm/edittaskdialog.cpp')
-rw-r--r--karm/edittaskdialog.cpp104
1 files changed, 52 insertions, 52 deletions
diff --git a/karm/edittaskdialog.cpp b/karm/edittaskdialog.cpp
index fb3c49b88..74d3417bd 100644
--- a/karm/edittaskdialog.cpp
+++ b/karm/edittaskdialog.cpp
@@ -20,18 +20,18 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
-#include <qbuttongroup.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qradiobutton.h>
-#include <qsizepolicy.h>
-#include <qstring.h>
-#include <qwidget.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqradiobutton.h>
+#include <tqsizepolicy.h>
+#include <tqstring.h>
+#include <tqwidget.h>
+#include <tqwhatsthis.h>
#include <klocale.h> // i18n
#include <kwinmodule.h>
@@ -40,27 +40,27 @@
#include "ktimewidget.h"
#include "kdebug.h"
-EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
+EditTaskDialog::EditTaskDialog( TQString caption, bool editDlg,
DesktopList* desktopList)
: KDialogBase(0, "EditTaskDialog", true, caption, Ok|Cancel, Ok, true ),
origTime( 0 ), origSession( 0 )
{
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
KWinModule kwinmodule(0, KWinModule::INFO_DESKTOP);
- QVBoxLayout *lay1 = new QVBoxLayout(page);
+ TQVBoxLayout *lay1 = new TQVBoxLayout(page);
- QHBoxLayout *lay2 = new QHBoxLayout();
+ TQHBoxLayout *lay2 = new TQHBoxLayout();
lay1->addLayout(lay2);
// The name of the widget
- QLabel *label = new QLabel( i18n("Task &name:"), page, "name" );
+ TQLabel *label = new TQLabel( i18n("Task &name:"), page, "name" );
lay2->addWidget( label );
lay2->addSpacing(5);
- _name = new QLineEdit( page, "lineedit" );
+ _name = new TQLineEdit( page, "lineedit" );
_name->setMinimumWidth(fontMetrics().maxWidth()*15);
lay2->addWidget( _name );
@@ -69,26 +69,26 @@ EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
// The "Edit Absolut" radio button
lay1->addSpacing(10);lay1->addStretch(1);
- _absoluteRB = new QRadioButton( i18n( "Edit &absolute" ), page,
+ _absoluteRB = new TQRadioButton( i18n( "Edit &absolute" ), page,
"_absoluteRB" );
lay1->addWidget( _absoluteRB );
- connect( _absoluteRB, SIGNAL( clicked() ), this, SLOT( slotAbsolutePressed() ) );
+ connect( _absoluteRB, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAbsolutePressed() ) );
// Absolute times
- QHBoxLayout *lay5 = new QHBoxLayout();
+ TQHBoxLayout *lay5 = new TQHBoxLayout();
lay1->addLayout(lay5);
lay5->addSpacing(20);
- QGridLayout *lay3 = new QGridLayout( 2, 2, -1, "lay3" );
+ TQGridLayout *lay3 = new TQGridLayout( 2, 2, -1, "lay3" );
lay5->addLayout(lay3);
- _sessionLA = new QLabel( i18n("&Session time: "), page, "session time" );
+ _sessionLA = new TQLabel( i18n("&Session time: "), page, "session time" );
// Time
- _timeLA = new QLabel( i18n("&Time:"), page, "time" );
+ _timeLA = new TQLabel( i18n("&Time:"), page, "time" );
lay3->addWidget( _timeLA, 0, 0 );
- _timeLA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1,
- (QSizePolicy::SizeType)0,
+ _timeLA->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1,
+ (TQSizePolicy::SizeType)0,
0,
0,
_timeLA->sizePolicy().hasHeightForWidth()) );
@@ -110,8 +110,8 @@ EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
_sessionTW = new KArmTimeWidget( page, "_sessionTW" );
lay3->addWidget( _sessionTW, 1, 1 );
_sessionLA->setBuddy( _sessionTW );
- _sessionLA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1,
- (QSizePolicy::SizeType)0,
+ _sessionLA->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1,
+ (TQSizePolicy::SizeType)0,
0,
0,
_sessionLA->sizePolicy().hasHeightForWidth()) );
@@ -121,21 +121,21 @@ EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
// The "Edit relative" radio button
lay1->addSpacing(10);
lay1->addStretch(1);
- _relativeRB = new QRadioButton( i18n( "Edit &relative (apply to both time and"
+ _relativeRB = new TQRadioButton( i18n( "Edit &relative (apply to both time and"
" session time)" ), page, "_relativeRB" );
lay1->addWidget( _relativeRB );
- connect( _relativeRB, SIGNAL( clicked() ), this, SLOT(slotRelativePressed()) );
+ connect( _relativeRB, TQT_SIGNAL( clicked() ), this, TQT_SLOT(slotRelativePressed()) );
// The relative times
- QHBoxLayout *lay4 = new QHBoxLayout();
+ TQHBoxLayout *lay4 = new TQHBoxLayout();
lay1->addLayout( lay4 );
lay4->addSpacing(20);
- _operator = new QComboBox(page);
- _operator->insertItem( QString::fromLatin1( "+" ) );
- _operator->insertItem( QString::fromLatin1( "-" ) );
- _operator->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1,
- (QSizePolicy::SizeType)0,
+ _operator = new TQComboBox(page);
+ _operator->insertItem( TQString::fromLatin1( "+" ) );
+ _operator->insertItem( TQString::fromLatin1( "-" ) );
+ _operator->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1,
+ (TQSizePolicy::SizeType)0,
0,
0,
_operator->sizePolicy().hasHeightForWidth()) );
@@ -165,24 +165,24 @@ EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
lay1->addSpacing(10);
lay1->addStretch(1);
- _desktopCB = new QCheckBox(i18n("A&uto tracking"), page);
+ _desktopCB = new TQCheckBox(i18n("A&uto tracking"), page);
_desktopCB->setEnabled(true);
lay1->addWidget(_desktopCB);
- QGroupBox* groupBox;
+ TQGroupBox* groupBox;
{
int lines = (int)(desktopCount/2);
if (lines*2 != desktopCount) lines++;
- groupBox = new QButtonGroup( lines, QGroupBox::Horizontal,
+ groupBox = new TQButtonGroup( lines, TQGroupBox::Horizontal,
i18n("In Desktop"), page, "_desktopsGB");
}
lay1->addWidget(groupBox);
- QHBoxLayout *lay6 = new QHBoxLayout();
+ TQHBoxLayout *lay6 = new TQHBoxLayout();
lay1->addLayout(lay6);
for (int i=0; i<desktopCount; i++) {
- _deskBox.push_back(new QCheckBox(groupBox,QString::number(i).latin1()));
+ _deskBox.push_back(new TQCheckBox(groupBox,TQString::number(i).latin1()));
_deskBox[i]->setText(kwinmodule.desktopName(i+1));
_deskBox[i]->setChecked(false);
@@ -207,7 +207,7 @@ EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
for (int i=0; i<desktopCount; i++)
_deskBox[i]->setEnabled(enableDesktops);
- connect(_desktopCB, SIGNAL(clicked()), this, SLOT(slotAutoTrackingPressed()));
+ connect(_desktopCB, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAutoTrackingPressed()));
lay1->addStretch(1);
@@ -224,32 +224,32 @@ EditTaskDialog::EditTaskDialog( QString caption, bool editDlg,
slotRelativePressed();
// Whats this help.
- QWhatsThis::add( _name,
+ TQWhatsThis::add( _name,
i18n( "Enter the name of the task here. "
"This name is for your eyes only."));
- QWhatsThis::add( _absoluteRB,
+ TQWhatsThis::add( _absoluteRB,
i18n( "Use this option to set the time spent on this task "
"to an absolute value.\n\nFor example, if you have "
"worked exactly four hours on this task during the current "
"session, you would set the Session time to 4 hr." ) );
- QWhatsThis::add( _relativeRB,
+ TQWhatsThis::add( _relativeRB,
i18n( "Use this option to change the time spent on this task "
"relative to its current value.\n\nFor example, if you worked "
"on this task for one hour without the timer running, you "
"would add 1 hr." ) );
- QWhatsThis::add( _timeTW,
+ TQWhatsThis::add( _timeTW,
i18n( "This is the time the task has been "
"running since all times were reset."));
- QWhatsThis::add( _sessionTW,
+ TQWhatsThis::add( _sessionTW,
i18n( "This is the time the task has been running this "
"session."));
- QWhatsThis::add( _diffTW, i18n( "Specify how much time to add or subtract "
+ TQWhatsThis::add( _diffTW, i18n( "Specify how much time to add or subtract "
"to the overall and session time"));
- QWhatsThis::add( _desktopCB,
+ TQWhatsThis::add( _desktopCB,
i18n( "Use this option to automatically start the timer "
"on this task when you switch to the specified desktop(s)." ) );
- QWhatsThis::add( groupBox,
+ TQWhatsThis::add( groupBox,
i18n( "Select the desktop(s) that will automatically start the "
"timer on this task." ) );
}
@@ -294,7 +294,7 @@ void EditTaskDialog::slotAutoTrackingPressed()
_deskBox[i]->setChecked(false);
}
-void EditTaskDialog::setTask( const QString &name, long time, long session )
+void EditTaskDialog::setTask( const TQString &name, long time, long session )
{
_name->setText( name );
@@ -305,7 +305,7 @@ void EditTaskDialog::setTask( const QString &name, long time, long session )
}
-QString EditTaskDialog::taskName() const
+TQString EditTaskDialog::taskName() const
{
return( _name->text() );
}