summaryrefslogtreecommitdiffstats
path: root/korganizer/printing/calprinter.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 /korganizer/printing/calprinter.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 'korganizer/printing/calprinter.cpp')
-rw-r--r--korganizer/printing/calprinter.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/korganizer/printing/calprinter.cpp b/korganizer/printing/calprinter.cpp
index 066c9c296..0ab61fdac 100644
--- a/korganizer/printing/calprinter.cpp
+++ b/korganizer/printing/calprinter.cpp
@@ -23,15 +23,15 @@
without including the source code for Qt in the source distribution.
*/
-#include <qvbuttongroup.h>
-#include <qwidgetstack.h>
-#include <qradiobutton.h>
-#include <qlayout.h>
-#include <qpushbutton.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qsplitter.h>
+#include <tqvbuttongroup.h>
+#include <tqwidgetstack.h>
+#include <tqradiobutton.h>
+#include <tqlayout.h>
+#include <tqpushbutton.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqsplitter.h>
#include <kprinter.h>
#include <ksimpleconfig.h>
@@ -46,8 +46,8 @@
#include "calprintdefaultplugins.h"
-CalPrinter::CalPrinter( QWidget *parent, Calendar *calendar, KOrg::CoreHelper *helper )
- : QObject( parent, "CalPrinter" )
+CalPrinter::CalPrinter( TQWidget *parent, Calendar *calendar, KOrg::CoreHelper *helper )
+ : TQObject( parent, "CalPrinter" )
{
mParent = parent;
mConfig = new KSimpleConfig( "korganizer_printing.rc" );
@@ -90,7 +90,7 @@ void CalPrinter::init( Calendar *calendar )
}
}
-void CalPrinter::setDateRange( const QDate &fd, const QDate &td )
+void CalPrinter::setDateRange( const TQDate &fd, const TQDate &td )
{
KOrg::PrintPlugin::List::Iterator it = mPrintPlugins.begin();
for ( ; it != mPrintPlugins.end(); ++it ) {
@@ -98,7 +98,7 @@ void CalPrinter::setDateRange( const QDate &fd, const QDate &td )
}
}
-void CalPrinter::print( int type, const QDate &fd, const QDate &td,
+void CalPrinter::print( int type, const TQDate &fd, const TQDate &td,
Incidence::List selectedIncidences, bool preview )
{
KOrg::PrintPlugin::List::Iterator it = mPrintPlugins.begin();
@@ -111,7 +111,7 @@ void CalPrinter::print( int type, const QDate &fd, const QDate &td,
printDialog.setPrintType( type );
setDateRange( fd, td );
- if ( printDialog.exec() == QDialog::Accepted ) {
+ if ( printDialog.exec() == TQDialog::Accepted ) {
mConfig->writeEntry( "Orientation", printDialog.orientation() );
// Save all changes in the dialog
@@ -168,33 +168,33 @@ void CalPrinter::updateConfig()
/****************************************************************************/
CalPrintDialog::CalPrintDialog( KOrg::PrintPlugin::List plugins,
- QWidget *parent, const char *name )
+ TQWidget *parent, const char *name )
: KDialogBase( parent, name, /*modal*/true, i18n("Print"), Ok | Cancel )
{
- QVBox *page = makeVBoxMainWidget();
+ TQVBox *page = makeVBoxMainWidget();
- QSplitter *splitter = new QSplitter( page );
- splitter->setOrientation( QSplitter::Horizontal );
+ TQSplitter *splitter = new TQSplitter( page );
+ splitter->setOrientation( TQSplitter::Horizontal );
- mTypeGroup = new QVButtonGroup( i18n("Print Style"), splitter, "buttonGroup" );
+ mTypeGroup = new TQVButtonGroup( i18n("Print Style"), splitter, "buttonGroup" );
// use the minimal width possible = max width of the radio buttons, not extensible
-/* mTypeGroup->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4,
- (QSizePolicy::SizeType)5, 0, 0,
+/* mTypeGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)4,
+ (TQSizePolicy::SizeType)5, 0, 0,
mTypeGroup->sizePolicy().hasHeightForWidth() ) );*/
- QWidget *splitterRight = new QWidget( splitter, "splitterRight" );
- QGridLayout *splitterRightLayout = new QGridLayout( splitterRight );
+ TQWidget *splitterRight = new TQWidget( splitter, "splitterRight" );
+ TQGridLayout *splitterRightLayout = new TQGridLayout( splitterRight );
splitterRightLayout->setMargin( marginHint() );
splitterRightLayout->setSpacing( spacingHint() );
- mConfigArea = new QWidgetStack( splitterRight, "configWidgetStack" );
+ mConfigArea = new TQWidgetStack( splitterRight, "configWidgetStack" );
splitterRightLayout->addMultiCellWidget( mConfigArea, 0,0, 0,1 );
- QLabel *orientationLabel = new QLabel( i18n("Page &orientation:"),
+ TQLabel *orientationLabel = new TQLabel( i18n("Page &orientation:"),
splitterRight, "orientationLabel" );
splitterRightLayout->addWidget( orientationLabel, 1, 0 );
- mOrientationSelection = new QComboBox( splitterRight, "orientationCombo" );
+ mOrientationSelection = new TQComboBox( splitterRight, "orientationCombo" );
mOrientationSelection->insertItem( i18n("Use Default Orientation of Selected Style") );
mOrientationSelection->insertItem( i18n("Use Printer Default") );
mOrientationSelection->insertItem( i18n("Portrait") );
@@ -202,7 +202,7 @@ CalPrintDialog::CalPrintDialog( KOrg::PrintPlugin::List plugins,
splitterRightLayout->addWidget( mOrientationSelection, 1, 1 );
// signals and slots connections
- connect( mTypeGroup, SIGNAL( clicked( int ) ), SLOT( setPrintType( int ) ) );
+ connect( mTypeGroup, TQT_SIGNAL( clicked( int ) ), TQT_SLOT( setPrintType( int ) ) );
orientationLabel->setBuddy( mOrientationSelection );
// First insert the config widgets into the widget stack. This possibly assigns
@@ -214,10 +214,10 @@ CalPrintDialog::CalPrintDialog( KOrg::PrintPlugin::List plugins,
mPluginIDs[newid] = (*it);
}
// Insert all plugins with in sorted order; plugins with clashing IDs will be first...
- QMap<int, KOrg::PrintPlugin*>::ConstIterator mapit;
+ TQMap<int, KOrg::PrintPlugin*>::ConstIterator mapit;
for ( mapit = mPluginIDs.begin(); mapit != mPluginIDs.end(); ++mapit ) {
KOrg::PrintPlugin *p = mapit.data();
- QRadioButton *radioButton = new QRadioButton( p->description(), mTypeGroup );
+ TQRadioButton *radioButton = new TQRadioButton( p->description(), mTypeGroup );
radioButton->setEnabled( p->enabled() );
mTypeGroup->insert( radioButton, mapit.key() );
// radioButton->setMinimumHeight( radioButton->sizeHint().height() - 5 );
@@ -266,7 +266,7 @@ void CalPrintDialog::slotOk()
{
mOrientation = (CalPrinter::ePrintOrientation)mOrientationSelection->currentItem();
- QMap<int, KOrg::PrintPlugin*>::Iterator it = mPluginIDs.begin();
+ TQMap<int, KOrg::PrintPlugin*>::Iterator it = mPluginIDs.begin();
for ( ; it != mPluginIDs.end(); ++it ) {
if ( it.data() )
it.data()->readSettingsWidget();