summaryrefslogtreecommitdiffstats
path: root/kpilot/kpilot/datebookWidget.cc
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 /kpilot/kpilot/datebookWidget.cc
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 'kpilot/kpilot/datebookWidget.cc')
-rw-r--r--kpilot/kpilot/datebookWidget.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/kpilot/kpilot/datebookWidget.cc b/kpilot/kpilot/datebookWidget.cc
index 64888560..bc2dff5e 100644
--- a/kpilot/kpilot/datebookWidget.cc
+++ b/kpilot/kpilot/datebookWidget.cc
@@ -31,9 +31,9 @@
#include "options.h"
-#include <qlayout.h>
-#include <qdir.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqdir.h>
+#include <tqpushbutton.h>
#include <klistview.h>
#include <kdatepicker.h>
@@ -41,27 +41,27 @@
#include "datebookWidget.moc"
-DatebookWidget::DatebookWidget(QWidget *parent, const QString &dbpath) :
+DatebookWidget::DatebookWidget(TQWidget *parent, const TQString &dbpath) :
PilotComponent(parent,"component_generic",dbpath)
{
FUNCTIONSETUP;
- QGridLayout *g = new QGridLayout(this,1,1,SPACING);
+ TQGridLayout *g = new TQGridLayout(this,1,1,SPACING);
fDatePicker = new KDatePicker( this, "fDatePicker" );
- fDatePicker->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, fDatePicker->sizePolicy().hasHeightForWidth() ) );
+ fDatePicker->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4, (TQSizePolicy::SizeType)5, 0, 0, fDatePicker->sizePolicy().hasHeightForWidth() ) );
g->addMultiCellWidget(fDatePicker,0,0,0,2);
- QSpacerItem* spacer = new QSpacerItem( 20, 180, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ TQSpacerItem* spacer = new TQSpacerItem( 20, 180, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
g->addItem( spacer, 1, 1 );
- fAddButton = new QPushButton( i18n( "&Add..." ), this, "pushButton1" );
+ fAddButton = new TQPushButton( i18n( "&Add..." ), this, "pushButton1" );
g->addWidget( fAddButton, 2, 0 );
- fEditButton = new QPushButton( i18n( "&Edit..." ), this, "pushButton2" );
+ fEditButton = new TQPushButton( i18n( "&Edit..." ), this, "pushButton2" );
g->addWidget( fEditButton, 2, 1 );
- fDeleteButton = new QPushButton( i18n( "&Delete..." ), this, "pushButton3" );
+ fDeleteButton = new TQPushButton( i18n( "&Delete..." ), this, "pushButton3" );
g->addWidget( fDeleteButton, 2, 2 );
fEventList = new KListView( this, "kListView1" );
@@ -69,18 +69,18 @@ DatebookWidget::DatebookWidget(QWidget *parent, const QString &dbpath) :
fEventList->addColumn( i18n( "Al" ) );
fEventList->addColumn( i18n( "Rec" ) );
fEventList->addColumn( i18n( "Description" ) );
-// fEventList->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, fEventList->sizePolicy().hasHeightForWidth() ) );
+// fEventList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 0, fEventList->sizePolicy().hasHeightForWidth() ) );
fEventList->setAllColumnsShowFocus( TRUE );
fEventList->setShowSortIndicator( TRUE );
fEventList->setResizeMode( KListView::/*LastColumn*/AllColumns );
fEventList->setFullWidth( TRUE );
-// fEventList->setAlternateBackground( QColor( 221, 146, 240 ) );
+// fEventList->setAlternateBackground( TQColor( 221, 146, 240 ) );
g->addMultiCellWidget(fEventList, 0, 2, 3, 3);
- connect(fDatePicker, SIGNAL(dateChanged()), SLOT(slotDayChanged()));
- connect(fAddButton, SIGNAL(clicked()), SLOT(slotAddEvent()));
- connect(fEditButton, SIGNAL(clicked()), SLOT(slotEditEvent()));
- connect(fDeleteButton, SIGNAL(clicked()), SLOT(slotDeleteEvent()));
+ connect(fDatePicker, TQT_SIGNAL(dateChanged()), TQT_SLOT(slotDayChanged()));
+ connect(fAddButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddEvent()));
+ connect(fEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEditEvent()));
+ connect(fDeleteButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDeleteEvent()));
}
DatebookWidget::~DatebookWidget()