diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:03:49 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:03:49 -0600 |
commit | a0523230c43c0c894e924fca7fe775e47a7d86a8 (patch) | |
tree | 1ef149baa33f6723a34870f3bacca46e5195dfb2 /kmymoney2/dialogs/kstartdlg.cpp | |
parent | e8837d86c8961bdfb65c25c6ff040468c95240cd (diff) | |
download | kmymoney-a0523230c43c0c894e924fca7fe775e47a7d86a8.tar.gz kmymoney-a0523230c43c0c894e924fca7fe775e47a7d86a8.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'kmymoney2/dialogs/kstartdlg.cpp')
-rw-r--r-- | kmymoney2/dialogs/kstartdlg.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kmymoney2/dialogs/kstartdlg.cpp b/kmymoney2/dialogs/kstartdlg.cpp index c781479..a5cdb21 100644 --- a/kmymoney2/dialogs/kstartdlg.cpp +++ b/kmymoney2/dialogs/kstartdlg.cpp @@ -70,10 +70,10 @@ KStartDlg::~KStartDlg() /** Set the font Page of the preferences dialog */ void KStartDlg::setPage_Template() { - KIconLoader *ic = TDEGlobal::iconLoader(); + TDEIconLoader *ic = TDEGlobal::iconLoader(); templateMainFrame = addVBoxPage( i18n("Templates"), i18n("Select templates"), DesktopIcon("wizard")); - view_wizard = new KIconView( templateMainFrame, "view_options" ); - (void)new TQIconViewItem( view_wizard, i18n("New KMyMoney document"), ic->loadIcon("mime_empty.png", KIcon::Desktop, KIcon::SizeLarge)/*TQPixmap( locate("icon","hicolor/48x48/mimetypes/mime_empty.png") )*/ ); + view_wizard = new TDEIconView( templateMainFrame, "view_options" ); + (void)new TQIconViewItem( view_wizard, i18n("New KMyMoney document"), ic->loadIcon("mime_empty.png", TDEIcon::Desktop, TDEIcon::SizeLarge)/*TQPixmap( locate("icon","hicolor/48x48/mimetypes/mime_empty.png") )*/ ); connect(view_wizard, TQT_SIGNAL(executed(TQIconViewItem *) ), this, TQT_SLOT(slotTemplateClicked(TQIconViewItem *) ) ); connect(view_wizard, TQT_SIGNAL(selectionChanged(TQIconViewItem*)), this, TQT_SLOT(slotTemplateSelectionChanged(TQIconViewItem*))); @@ -97,11 +97,11 @@ void KStartDlg::setPage_Documents() TQLabel *label1 = new TQLabel( recentMainFrame, "label1" ); label1->setText( i18n("Recent Files") ); mainLayout->addWidget( label1 ); - view_recent = new KIconView( recentMainFrame, "view_recent" ); + view_recent = new TDEIconView( recentMainFrame, "view_recent" ); connect( view_recent, TQT_SIGNAL( executed(TQIconViewItem *) ), this, TQT_SLOT( slotRecentClicked(TQIconViewItem *) ) ); mainLayout->addWidget( view_recent ); - view_recent->setArrangement(KIconView::LeftToRight/*TopToBottom*/); - view_recent->setItemTextPos(KIconView::Bottom); + view_recent->setArrangement(TDEIconView::LeftToRight/*TopToBottom*/); + view_recent->setItemTextPos(TDEIconView::Bottom); connect(view_recent, TQT_SIGNAL(selectionChanged(TQIconViewItem*)), this, TQT_SLOT(slotRecentSelectionChanged(TQIconViewItem*))); @@ -129,7 +129,7 @@ void KStartDlg::readConfig() unsigned int i = 1; TDEConfig *config = TDEGlobal::config(); - KIconLoader *il = TDEGlobal::iconLoader(); + TDEIconLoader *il = TDEGlobal::iconLoader(); // read file list do { @@ -142,7 +142,7 @@ void KStartDlg::readConfig() if( !value.isNull() && fileExists(value) ) { TQString file_name = value.mid(value.findRev('/')+1); - (void)new TDERecentFileItem( value, view_recent, file_name, il->loadIcon("kmy", KIcon::Desktop, KIcon::SizeLarge)); + (void)new TDERecentFileItem( value, view_recent, file_name, il->loadIcon("kmy", TDEIcon::Desktop, TDEIcon::SizeLarge)); } i++; } while( !value.isNull() ); |