diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:07:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:07:48 -0600 |
commit | efa4f718964aee9c6612fe61665dec4622cb6785 (patch) | |
tree | b726f68c5f7bf7d6e41fa06d5df99b9e318876f8 /src/gui | |
parent | abef44c4d682c4a656465f91d019cc1af1b989d1 (diff) | |
download | ktechlab-efa4f718964aee9c6612fe61665dec4622cb6785.tar.gz ktechlab-efa4f718964aee9c6612fe61665dec4622cb6785.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/newfiledlg.cpp | 16 | ||||
-rw-r--r-- | src/gui/newfilewidget.ui | 2 | ||||
-rw-r--r-- | src/gui/oscilloscope.cpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/newfiledlg.cpp b/src/gui/newfiledlg.cpp index 87159c1..4a32b00 100644 --- a/src/gui/newfiledlg.cpp +++ b/src/gui/newfiledlg.cpp @@ -41,20 +41,20 @@ NewFileDlg::NewFileDlg( TQWidget *parent ) m_pNewFileWidget = new NewFileWidget(this); m_pNewFileWidget->typeIconView->setSelectionMode(TQIconView::Single); - m_pNewFileWidget->typeIconView->setMode(KIconView::Select); + m_pNewFileWidget->typeIconView->setMode(TDEIconView::Select); - KIconLoader *loader = TDEGlobal::iconLoader(); + TDEIconLoader *loader = TDEGlobal::iconLoader(); TQValueList<TQIconViewItem*> items; - items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Assembly Code (.asm)", loader->loadIcon( "source", KIcon::NoGroup, KIcon::SizeHuge ) ); - items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"C (.c)", loader->loadIcon( "source_c", KIcon::NoGroup, KIcon::SizeHuge ) ); - items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Circuit (.circuit)", loader->loadIcon( "ktechlab_circuit", KIcon::NoGroup, KIcon::SizeHuge ) ); - items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"FlowCode (.flowcode)", loader->loadIcon( "ktechlab_flowcode", KIcon::NoGroup, KIcon::SizeHuge ) ); + items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Assembly Code (.asm)", loader->loadIcon( "source", TDEIcon::NoGroup, TDEIcon::SizeHuge ) ); + items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"C (.c)", loader->loadIcon( "source_c", TDEIcon::NoGroup, TDEIcon::SizeHuge ) ); + items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Circuit (.circuit)", loader->loadIcon( "ktechlab_circuit", TDEIcon::NoGroup, TDEIcon::SizeHuge ) ); + items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"FlowCode (.flowcode)", loader->loadIcon( "ktechlab_flowcode", TDEIcon::NoGroup, TDEIcon::SizeHuge ) ); #ifdef MECHANICS - items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Mechanics (.mechanics)", loader->loadIcon( "exec", KIcon::NoGroup, KIcon::SizeHuge ) ); + items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Mechanics (.mechanics)", loader->loadIcon( "exec", TDEIcon::NoGroup, TDEIcon::SizeHuge ) ); #endif - items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Microbe (.microbe)", loader->loadIcon( "ktechlab_microbe", KIcon::NoGroup, KIcon::SizeHuge ) ); + items << new TQIconViewItem(m_pNewFileWidget->typeIconView,"Microbe (.microbe)", loader->loadIcon( "ktechlab_microbe", TDEIcon::NoGroup, TDEIcon::SizeHuge ) ); unsigned minWidth = 20 + m_pNewFileWidget->typeIconView->spacing() * items.size(); int minHeight = 0; diff --git a/src/gui/newfilewidget.ui b/src/gui/newfilewidget.ui index 4f0b4dc..5d94858 100644 --- a/src/gui/newfilewidget.ui +++ b/src/gui/newfilewidget.ui @@ -63,7 +63,7 @@ Creates a new circuit, with drag and drop editor. Real time simulation of the ci <set>AlignVCenter</set> </property> </widget> - <widget class="KIconView" row="1" column="1"> + <widget class="TDEIconView" row="1" column="1"> <property name="name"> <cstring>typeIconView</cstring> </property> diff --git a/src/gui/oscilloscope.cpp b/src/gui/oscilloscope.cpp index 7bc0a07..d88924c 100644 --- a/src/gui/oscilloscope.cpp +++ b/src/gui/oscilloscope.cpp @@ -332,7 +332,7 @@ void addOscilloscopeAsToolView( KTechlab *ktechlab ) KateMDI::ToolView * tv; tv = ktechlab->createToolView( Oscilloscope::toolViewIdentifier(), KMultiTabBar::Bottom, - TDEGlobal::iconLoader()->loadIcon( "oscilloscope", KIcon::Small ), + TDEGlobal::iconLoader()->loadIcon( "oscilloscope", TDEIcon::Small ), i18n("Oscilloscope") ); Oscilloscope::self(tv); |