author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (side-by-side diff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/outgoingdialog_base.cpp | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/outgoingdialog_base.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/outgoingdialog_base.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/korganizer/outgoingdialog_base.cpp b/korganizer/outgoingdialog_base.cpp index 1873b44..be8a870 100644 --- a/korganizer/outgoingdialog_base.cpp +++ b/korganizer/outgoingdialog_base.cpp @@ -1,107 +1,109 @@ #include <klocale.h> /**************************************************************************** ** Form implementation generated from reading ui file '/build/kde/cvs/korge/kdepim/korganizer/outgoingdialog_base.ui' ** ** Created: Sat Mar 29 22:31:21 2003 ** by: The User Interface Compiler () ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "outgoingdialog_base.h" #include <qvariant.h> -#include <qheader.h> -#include <qlistview.h> +#include <q3header.h> +#include <q3listview.h> #include <qpushbutton.h> #include <qlayout.h> #include <qtooltip.h> -#include <qwhatsthis.h> +#include <q3whatsthis.h> +//Added by qt3to4: +#include <Q3GridLayout> /* * Constructs a OutgoingDialog_base as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, WFlags fl ) +OutgoingDialog_base::OutgoingDialog_base( QWidget* parent, const char* name, bool modal, Qt::WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "OutgoingDialog_base" ); - OutgoingDialog_baseLayout = new QGridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout"); + OutgoingDialog_baseLayout = new Q3GridLayout( this, 1, 1, 11, 6, "OutgoingDialog_baseLayout"); - mMessageListView = new QListView( this, "mMessageListView" ); + mMessageListView = new Q3ListView( this, "mMessageListView" ); mMessageListView->addColumn( tr2i18n( "Summary" ) ); mMessageListView->addColumn( tr2i18n( "Start Date" ) ); mMessageListView->addColumn( tr2i18n( "Start Time" ) ); mMessageListView->addColumn( tr2i18n( "End Date" ) ); mMessageListView->addColumn( tr2i18n( "End Time" ) ); mMessageListView->addColumn( tr2i18n( "Method" ) ); - mMessageListView->setFrameShape( QListView::StyledPanel ); - mMessageListView->setFrameShadow( QListView::Sunken ); + mMessageListView->setFrameShape( Q3ListView::StyledPanel ); + mMessageListView->setFrameShadow( Q3ListView::Sunken ); mMessageListView->setAllColumnsShowFocus( TRUE ); OutgoingDialog_baseLayout->addMultiCellWidget( mMessageListView, 0, 3, 0, 0 ); PushButton5 = new QPushButton( this, "PushButton5" ); PushButton5->setDefault( FALSE ); OutgoingDialog_baseLayout->addWidget( PushButton5, 0, 1 ); PushButton7 = new QPushButton( this, "PushButton7" ); OutgoingDialog_baseLayout->addWidget( PushButton7, 1, 1 ); PushButton6 = new QPushButton( this, "PushButton6" ); PushButton6->setDefault( TRUE ); OutgoingDialog_baseLayout->addWidget( PushButton6, 3, 1 ); QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); OutgoingDialog_baseLayout->addItem( spacer, 2, 1 ); languageChange(); resize( QSize(582, 274).expandedTo(minimumSizeHint()) ); // signals and slots connections connect( PushButton6, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( PushButton5, SIGNAL( clicked() ), this, SLOT( send() ) ); connect( PushButton7, SIGNAL( clicked() ), this, SLOT( deleteItem() ) ); } /* * Destroys the object and frees any allocated resources */ OutgoingDialog_base::~OutgoingDialog_base() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void OutgoingDialog_base::languageChange() { setCaption( tr2i18n( "Scheduler - Outgoing Messages" ) ); mMessageListView->header()->setLabel( 0, tr2i18n( "Summary" ) ); mMessageListView->header()->setLabel( 1, tr2i18n( "Start Date" ) ); mMessageListView->header()->setLabel( 2, tr2i18n( "Start Time" ) ); mMessageListView->header()->setLabel( 3, tr2i18n( "End Date" ) ); mMessageListView->header()->setLabel( 4, tr2i18n( "End Time" ) ); mMessageListView->header()->setLabel( 5, tr2i18n( "Method" ) ); PushButton5->setText( tr2i18n( "&Send Messages" ) ); PushButton7->setText( tr2i18n( "&Remove" ) ); PushButton6->setText( tr2i18n( "&Close" ) ); } void OutgoingDialog_base::send() { qWarning( "OutgoingDialog_base::send(): Not implemented yet" ); } void OutgoingDialog_base::deleteItem() { qWarning( "OutgoingDialog_base::deleteItem(): Not implemented yet" ); } |