diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:36:44 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:36:44 -0600 |
commit | ff87b104ff73f32bd8963b412f7c6c7badb62843 (patch) | |
tree | 597b3624eae33b2bff58805909b4b644869863b3 /libkipi/libkipi/batchprogressdialog.cpp | |
parent | ee79084ed72a8798c605217eeffbef8fde24e42c (diff) | |
download | libkipi-ff87b104ff73f32bd8963b412f7c6c7badb62843.tar.gz libkipi-ff87b104ff73f32bd8963b412f7c6c7badb62843.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'libkipi/libkipi/batchprogressdialog.cpp')
-rw-r--r-- | libkipi/libkipi/batchprogressdialog.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libkipi/libkipi/batchprogressdialog.cpp b/libkipi/libkipi/batchprogressdialog.cpp index 7ceca4f..ec90a99 100644 --- a/libkipi/libkipi/batchprogressdialog.cpp +++ b/libkipi/libkipi/batchprogressdialog.cpp @@ -24,7 +24,7 @@ // Include files for TQt #include <tqvbox.h> -#include <tqlayout.h> +#include <layout.h> #include <tqdir.h> #include <tqwidget.h> #include <tqgroupbox.h> @@ -106,25 +106,25 @@ public: private: int m_messagetype; - void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) + void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) { TQColorGroup _cg( cg ); if ( m_messagetype == KIPI::ErrorMessage ) { _cg.setColor( TQColorGroup::Text, TQt::red ); - KListViewItem::paintCell( p, _cg, column, width, tqalignment ); + KListViewItem::paintCell( p, _cg, column, width, alignment ); return; } if ( m_messagetype == KIPI::WarningMessage ) { _cg.setColor( TQColorGroup::Text, TQt::darkYellow ); - KListViewItem::paintCell( p, _cg, column, width, tqalignment ); + KListViewItem::paintCell( p, _cg, column, width, alignment ); return; } - KListViewItem::paintCell( p, cg, column, width, tqalignment ); + KListViewItem::paintCell( p, cg, column, width, alignment ); } }; @@ -146,15 +146,15 @@ BatchProgressDialog::BatchProgressDialog( TQWidget *parent, const TQString &capt TQFrame *headerFrame = new TQFrame( box ); headerFrame->setFrameStyle(TQFrame::Panel|TQFrame::Sunken); - TQHBoxLayout* tqlayout = new TQHBoxLayout( headerFrame ); - tqlayout->setMargin( 2 ); // to make sure the frame gets displayed - tqlayout->setSpacing( 0 ); + TQHBoxLayout* layout = new TQHBoxLayout( headerFrame ); + layout->setMargin( 2 ); // to make sure the frame gets displayed + layout->setSpacing( 0 ); TQLabel *pixmapLabelLeft = new TQLabel( headerFrame, "pixmapLabelLeft" ); pixmapLabelLeft->setScaledContents( false ); - tqlayout->addWidget( pixmapLabelLeft ); + layout->addWidget( pixmapLabelLeft ); TQLabel *labelTitle = new TQLabel( caption, headerFrame, "labelTitle" ); - tqlayout->addWidget( labelTitle ); - tqlayout->setStretchFactor( labelTitle, 1 ); + layout->addWidget( labelTitle ); + layout->setStretchFactor( labelTitle, 1 ); TQString dir; KGlobal::dirs()->addResourceType("kipi_banner_left", KGlobal::dirs()->kde_default("data") + "kipi/data"); |