diff options
author | Timothy Pearson <[email protected]> | 2013-02-04 14:09:18 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-04 14:09:18 -0600 |
commit | 0880fe83db61f8121261753f6eef4d7e0fd78a4c (patch) | |
tree | b08e13f5358c0788545820b389aa73055a5fe922 /src/cdopener.cpp | |
parent | 2dec1ab21eff318618d755b0557a33a1d10af649 (diff) | |
download | soundkonverter-0880fe83db61f8121261753f6eef4d7e0fd78a4c.tar.gz soundkonverter-0880fe83db61f8121261753f6eef4d7e0fd78a4c.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/cdopener.cpp')
-rwxr-xr-x | src/cdopener.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/cdopener.cpp b/src/cdopener.cpp index d664def..e232e6b 100755 --- a/src/cdopener.cpp +++ b/src/cdopener.cpp @@ -35,11 +35,11 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin config = _config; // create an icon loader object for loading icons - KIconLoader* iconLoader = new KIconLoader(); + TDEIconLoader* iconLoader = new TDEIconLoader(); // let the dialog look nice setCaption( i18n("Add CD tracks") ); - setIcon( iconLoader->loadIcon("cdaudio_unmount",KIcon::Small) ); + setIcon( iconLoader->loadIcon("cdaudio_unmount",TDEIcon::Small) ); // the grid for all widgets in the dialog TQGridLayout* gridLayout = new TQGridLayout( this, 1, 1, 11, 6, "gridLayout" ); @@ -76,7 +76,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin ); //artistBox->addStretch(); artistBox->addSpacing( 130 ); -// pCDDB = new KPushButton( iconLoader->loadIcon("cdaudio_unmount",KIcon::Small), i18n("Request CDDB"), this, "pCDDB" ); +// pCDDB = new KPushButton( iconLoader->loadIcon("cdaudio_unmount",TDEIcon::Small), i18n("Request CDDB"), this, "pCDDB" ); // topGridLayout->addWidget( pCDDB, 0, 8 ); // set up the second row at the top @@ -137,14 +137,14 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin // add the up and down buttons pTrackUp = new KPushButton( " ", tagGroupBox, "pTrackUp" ); - pTrackUp->setPixmap( iconLoader->loadIcon("up",KIcon::Toolbar) ); + pTrackUp->setPixmap( iconLoader->loadIcon("up",TDEIcon::Toolbar) ); pTrackUp->setAutoRepeat( true ); connect( pTrackUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(trackUpPressed()) ); tagGridLayout->addWidget( pTrackUp, 0, 0 ); pTrackDown = new KPushButton( " ", tagGroupBox, "pTrackDown" ); - pTrackDown->setPixmap( iconLoader->loadIcon("down",KIcon::Toolbar) ); + pTrackDown->setPixmap( iconLoader->loadIcon("down",TDEIcon::Toolbar) ); pTrackDown->setAutoRepeat( true ); connect( pTrackDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(trackDownPressed()) @@ -164,7 +164,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin this, TQT_SLOT(trackTitleChanged(const TQString&)) ); pTrackTitleEdit = new KPushButton( " ", tagGroupBox, "pTrackTitleEdit" ); - pTrackTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); + pTrackTitleEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackTitleEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() ); pTrackTitleEdit->hide(); trackTitleBox->addWidget( pTrackTitleEdit ); @@ -183,7 +183,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin this, TQT_SLOT(trackArtistChanged(const TQString&)) ); pTrackArtistEdit = new KPushButton( " ", tagGroupBox, "pTrackArtistEdit" ); - pTrackArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); + pTrackArtistEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackArtistEdit->setFixedSize( lTrackArtist->sizeHint().height(), lTrackArtist->sizeHint().height() ); pTrackArtistEdit->hide(); trackArtistBox->addWidget( pTrackArtistEdit ); @@ -198,7 +198,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin this, TQT_SLOT(trackComposerChanged(const TQString&)) ); pTrackComposerEdit = new KPushButton( " ", tagGroupBox, "pTrackComposerEdit" ); - pTrackComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); + pTrackComposerEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackComposerEdit->setFixedSize( lTrackComposer->sizeHint().height(), lTrackComposer->sizeHint().height() ); pTrackComposerEdit->hide(); trackArtistBox->addWidget( pTrackComposerEdit ); @@ -218,7 +218,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin this, TQT_SLOT(trackCommentChanged()) ); pTrackCommentEdit = new KPushButton( " ", tagGroupBox, "pTrackCommentEdit" ); - pTrackCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",KIcon::Small) ); + pTrackCommentEdit->setPixmap( iconLoader->loadIcon("kwrite",TDEIcon::Small) ); pTrackCommentEdit->setFixedSize( lTrackTitle->sizeHint().height(), lTrackTitle->sizeHint().height() ); pTrackCommentEdit->hide(); trackCommentBox->addWidget( pTrackCommentEdit ); @@ -239,7 +239,7 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin gridLayout->addLayout( controlBox, 4, 0 ); // add the control elements - pSaveCue = new KPushButton( iconLoader->loadIcon("filesave",KIcon::Small), i18n("Save cuesheet ..."), this, "pSaveCue" ); + pSaveCue = new KPushButton( iconLoader->loadIcon("filesave",TDEIcon::Small), i18n("Save cuesheet ..."), this, "pSaveCue" ); controlBox->addWidget( pSaveCue ); connect( pSaveCue, TQT_SIGNAL(clicked()), this, TQT_SLOT(saveCuesheetClicked()) @@ -247,16 +247,16 @@ CDOpener::CDOpener( Config* _config, CDManager* _cdManager, TagEngine* _tagEngin controlBox->addStretch(); cAdd = new ComboButton( this, "cAdd" ); - cAdd->insertItem( iconLoader->loadIcon("fileopen",KIcon::Small),i18n("Add all tracks") ); - cAdd->insertItem( iconLoader->loadIcon("fileopen",KIcon::Small),i18n("Add selected tracks") ); + cAdd->insertItem( iconLoader->loadIcon("fileopen",TDEIcon::Small),i18n("Add all tracks") ); + cAdd->insertItem( iconLoader->loadIcon("fileopen",TDEIcon::Small),i18n("Add selected tracks") ); RipperPlugin* plugin = config->getCurrentRipper(); - if( plugin != 0 && plugin->rip.full_disc.enabled ) cAdd->insertItem( iconLoader->loadIcon("cdaudio_unmount",KIcon::Small),i18n("Add full CD as one file") ); + if( plugin != 0 && plugin->rip.full_disc.enabled ) cAdd->insertItem( iconLoader->loadIcon("cdaudio_unmount",TDEIcon::Small),i18n("Add full CD as one file") ); //cAdd->setSizeMode( ComboButton::Min ); controlBox->addWidget( cAdd ); connect( cAdd, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(addClicked(int)) ); - pCancel = new KPushButton( iconLoader->loadIcon("cancel",KIcon::Small), i18n("Cancel"), this, "pCancel" ); + pCancel = new KPushButton( iconLoader->loadIcon("cancel",TDEIcon::Small), i18n("Cancel"), this, "pCancel" ); controlBox->addWidget( pCancel ); connect( pCancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) |