summaryrefslogtreecommitdiffstats
path: root/kig/modes
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:15:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:15:51 -0600
commit8cb8ba0f957e8a164cdcfbc2685b14d8d0a5c9a5 (patch)
tree896beb3aed9d9d27eb560459a9ab05d1230c018a /kig/modes
parentc44bd981877cabab2b021987eb29ef00fbba9e82 (diff)
downloadtdeedu-8cb8ba0f957e8a164cdcfbc2685b14d8d0a5c9a5.tar.gz
tdeedu-8cb8ba0f957e8a164cdcfbc2685b14d8d0a5c9a5.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'kig/modes')
-rw-r--r--kig/modes/edittypebase.ui2
-rw-r--r--kig/modes/label.cc2
-rw-r--r--kig/modes/popup.cc18
-rw-r--r--kig/modes/typesdialog.cpp10
-rw-r--r--kig/modes/typesdialog.h2
5 files changed, 17 insertions, 17 deletions
diff --git a/kig/modes/edittypebase.ui b/kig/modes/edittypebase.ui
index e0af9850..8f9365c1 100644
--- a/kig/modes/edittypebase.ui
+++ b/kig/modes/edittypebase.ui
@@ -131,7 +131,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="KIconButton">
+ <widget class="TDEIconButton">
<property name="name">
<cstring>typeIcon</cstring>
</property>
diff --git a/kig/modes/label.cc b/kig/modes/label.cc
index f8c82dfa..67509396 100644
--- a/kig/modes/label.cc
+++ b/kig/modes/label.cc
@@ -143,7 +143,7 @@ void TextLabelModeBase::leftReleased( TQMouseEvent* e, KigWidget* v )
int t;
if ( iconfile && *iconfile )
{
- TQPixmap pix = mdoc.instance()->iconLoader()->loadIcon( iconfile, KIcon::User );
+ TQPixmap pix = mdoc.instance()->iconLoader()->loadIcon( iconfile, TDEIcon::User );
t = p->insertItem( TQIconSet( pix ), s, i + 1 );
}
else
diff --git a/kig/modes/popup.cc b/kig/modes/popup.cc
index 042e379a..5c2528a6 100644
--- a/kig/modes/popup.cc
+++ b/kig/modes/popup.cc
@@ -306,8 +306,8 @@ NormalModePopupObjects::NormalModePopupObjects( KigPart& part,
insertItem( menunames[i], mmenus[i], i, index++ );
else
{
- KIconLoader* l = part.instance()->iconLoader();
- TQPixmap icon = l->loadIcon( menuicons[i], KIcon::Small, 22, KIcon::DefaultState, 0L, true );
+ TDEIconLoader* l = part.instance()->iconLoader();
+ TQPixmap icon = l->loadIcon( menuicons[i], TDEIcon::Small, 22, TDEIcon::DefaultState, 0L, true );
insertItem( TQIconSet( icon ), menunames[i], mmenus[i], i, index++ );
}
};
@@ -375,7 +375,7 @@ void BuiltinObjectActionsProvider::fillUpMenu( NormalModePopupObjects& popup, in
{
if ( menu == NormalModePopupObjects::ToplevelMenu )
{
- KIconLoader* l = popup.part().instance()->iconLoader();
+ TDEIconLoader* l = popup.part().instance()->iconLoader();
std::vector<ObjectHolder*> os = popup.objects();
/*
@@ -397,9 +397,9 @@ void BuiltinObjectActionsProvider::fillUpMenu( NormalModePopupObjects& popup, in
popup.addAction( menu, i18n( "&Show" ), nextfree+1 );
}
nextfree += 2;
- TQPixmap p = l->loadIcon( "move", KIcon::Toolbar );
+ TQPixmap p = l->loadIcon( "move", TDEIcon::Toolbar );
popup.addAction( menu, p, i18n( "&Move" ), nextfree++ );
- p = l->loadIcon( "editdelete", KIcon::Toolbar );
+ p = l->loadIcon( "editdelete", TDEIcon::Toolbar );
popup.addAction( menu, p, i18n( "&Delete" ), nextfree++ );
}
else if ( menu == NormalModePopupObjects::SetColorMenu )
@@ -756,7 +756,7 @@ void ObjectConstructorActionsProvider::fillUpMenu( NormalModePopupObjects& popup
TQCString iconfile = (*i)->iconFileName();
if ( !iconfile.isEmpty() && !iconfile.isNull() )
{
- TQPixmap icon = popup.part().instance()->iconLoader()->loadIcon( iconfile, KIcon::Toolbar, 22, KIcon::DefaultState, 0L, true );
+ TQPixmap icon = popup.part().instance()->iconLoader()->loadIcon( iconfile, TDEIcon::Toolbar, 22, TDEIcon::DefaultState, 0L, true );
popup.addAction( menu, icon, (*i)->descriptiveName(), nextfree++ );
}
else
@@ -881,7 +881,7 @@ void PropertiesActionsProvider::fillUpMenu( NormalModePopupObjects& popup,
{
if ( iconfile && *iconfile )
{
- TQPixmap pix = popup.part().instance()->iconLoader()->loadIcon( iconfile, KIcon::Toolbar, 22, KIcon::DefaultState, 0L, true );
+ TQPixmap pix = popup.part().instance()->iconLoader()->loadIcon( iconfile, TDEIcon::Toolbar, 22, TDEIcon::DefaultState, 0L, true );
popup.addAction( menu, pix, i18n( o->imp()->properties()[i] ), nextfree++ );
}
else
@@ -1052,8 +1052,8 @@ void ScriptActionsProvider::fillUpMenu( NormalModePopupObjects& popup, int menu,
{
if ( menu == NormalModePopupObjects::StartMenu )
{
- KIconLoader* l = popup.part().instance()->iconLoader();
- TQPixmap p = l->loadIcon( ScriptType::icon( ScriptType::Python ), KIcon::Toolbar, 22, KIcon::DefaultState, 0L, true );
+ TDEIconLoader* l = popup.part().instance()->iconLoader();
+ TQPixmap p = l->loadIcon( ScriptType::icon( ScriptType::Python ), TDEIcon::Toolbar, 22, TDEIcon::DefaultState, 0L, true );
popup.addAction( menu, p, i18n( "Python Script" ), nextfree++ );
mns++;
}
diff --git a/kig/modes/typesdialog.cpp b/kig/modes/typesdialog.cpp
index 917a46fc..82b280fa 100644
--- a/kig/modes/typesdialog.cpp
+++ b/kig/modes/typesdialog.cpp
@@ -68,10 +68,10 @@ TypesDialog::TypesDialog( TQWidget* parent, KigPart& part )
buttonOk->setGuiItem( KStdGuiItem::ok() );
buttonCancel->setGuiItem( KStdGuiItem::cancel() );
il = part.instance()->iconLoader();
- buttonEdit->setIconSet( TQIconSet( il->loadIcon( "edit", KIcon::Small ) ) );
- buttonRemove->setIconSet( TQIconSet( il->loadIcon( "editdelete", KIcon::Small ) ) );
- buttonExport->setIconSet( TQIconSet( il->loadIcon( "fileexport", KIcon::Small ) ) );
- buttonImport->setIconSet( TQIconSet( il->loadIcon( "fileimport", KIcon::Small ) ) );
+ buttonEdit->setIconSet( TQIconSet( il->loadIcon( "edit", TDEIcon::Small ) ) );
+ buttonRemove->setIconSet( TQIconSet( il->loadIcon( "editdelete", TDEIcon::Small ) ) );
+ buttonExport->setIconSet( TQIconSet( il->loadIcon( "fileexport", TDEIcon::Small ) ) );
+ buttonImport->setIconSet( TQIconSet( il->loadIcon( "fileimport", TDEIcon::Small ) ) );
typeList->setColumnWidth( 0, 22 );
typeList->setColumnWidth( 1, 140 );
@@ -96,7 +96,7 @@ TQListViewItem* TypesDialog::newListItem( Macro* m )
TQCString ifn = m->action->iconFileName();
if ( !ifn.isNull() )
{
- TQPixmap p = il->loadIcon( ifn, KIcon::Small );
+ TQPixmap p = il->loadIcon( ifn, TDEIcon::Small );
e->setPixmap( 0, p );
}
return e;
diff --git a/kig/modes/typesdialog.h b/kig/modes/typesdialog.h
index 6e06bb79..636999c5 100644
--- a/kig/modes/typesdialog.h
+++ b/kig/modes/typesdialog.h
@@ -43,7 +43,7 @@ class TypesDialog : public TypesDialogBase
// necessary because some MacroList functions need it..
KigPart& mpart;
- const KIconLoader* il;
+ const TDEIconLoader* il;
TQPopupMenu* popup;
public:
TypesDialog( TQWidget* parent, KigPart& );