diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-07-31 17:12:50 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-07-31 17:25:03 +0200 |
commit | bfae40d567282d89db189816d672a5c6af89ca4e (patch) | |
tree | 20d9a16c77474c6062e2a69801b91decd86de78f /krecipes/src/widgets/headerlistview.cpp | |
parent | 5f9410ae910e73f8966318d1e1b9be03a5651118 (diff) | |
download | krecipes-bfae40d567282d89db189816d672a5c6af89ca4e.tar.gz krecipes-bfae40d567282d89db189816d672a5c6af89ca4e.zip |
Initial TDE conversion
Diffstat (limited to 'krecipes/src/widgets/headerlistview.cpp')
-rw-r--r-- | krecipes/src/widgets/headerlistview.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/krecipes/src/widgets/headerlistview.cpp b/krecipes/src/widgets/headerlistview.cpp index daa72db..16795f5 100644 --- a/krecipes/src/widgets/headerlistview.cpp +++ b/krecipes/src/widgets/headerlistview.cpp @@ -12,12 +12,12 @@ #include "headerlistview.h" -#include <kmessagebox.h> -#include <kconfig.h> -#include <klocale.h> -#include <kglobal.h> +#include <tdemessagebox.h> +#include <tdeconfig.h> +#include <tdelocale.h> +#include <tdeglobal.h> #include <kiconloader.h> -#include <kpopupmenu.h> +#include <tdepopupmenu.h> #include "backends/recipedb.h" #include "dialogs/createelementdialog.h" @@ -59,7 +59,7 @@ StdHeaderListView::StdHeaderListView( TQWidget *parent, RecipeDB *db, bool edita { addColumn( i18n( "Header" ) ); - KConfig * config = KGlobal::config(); + TDEConfig * config = TDEGlobal::config(); config->setGroup( "Advanced" ); bool show_id = config->readBoolEntry( "ShowID", false ); addColumn( i18n( "Id" ), show_id ? -1 : 0 ); @@ -67,24 +67,24 @@ StdHeaderListView::StdHeaderListView( TQWidget *parent, RecipeDB *db, bool edita if ( editable ) { setRenameable( 0, true ); - KIconLoader *il = new KIconLoader; + TDEIconLoader *il = new TDEIconLoader; - kpop = new KPopupMenu( this ); - kpop->insertItem( il->loadIcon( "filenew", KIcon::NoGroup, 16 ), i18n( "&Create" ), this, SLOT( createNew() ), CTRL + Key_C ); - kpop->insertItem( il->loadIcon( "editdelete", KIcon::NoGroup, 16 ), i18n( "&Delete" ), this, SLOT( remove + kpop = new TDEPopupMenu( this ); + kpop->insertItem( il->loadIcon( "filenew", TDEIcon::NoGroup, 16 ), i18n( "&Create" ), this, SLOT( createNew() ), CTRL + Key_C ); + kpop->insertItem( il->loadIcon( "editdelete", TDEIcon::NoGroup, 16 ), i18n( "&Delete" ), this, SLOT( remove () ), Key_Delete ); - kpop->insertItem( il->loadIcon( "edit", KIcon::NoGroup, 16 ), i18n( "&Rename" ), this, SLOT( rename() ), CTRL + Key_R ); + kpop->insertItem( il->loadIcon( "edit", TDEIcon::NoGroup, 16 ), i18n( "&Rename" ), this, SLOT( rename() ), CTRL + Key_R ); kpop->polish(); delete il; - connect( this, SIGNAL( contextMenu( KListView *, TQListViewItem *, const TQPoint & ) ), SLOT( showPopup( KListView *, TQListViewItem *, const TQPoint & ) ) ); + connect( this, SIGNAL( contextMenu( TDEListView *, TQListViewItem *, const TQPoint & ) ), SLOT( showPopup( TDEListView *, TQListViewItem *, const TQPoint & ) ) ); connect( this, SIGNAL( doubleClicked( TQListViewItem*, const TQPoint &, int ) ), this, SLOT( modHeader( TQListViewItem*, const TQPoint &, int ) ) ); connect( this, SIGNAL( itemRenamed( TQListViewItem*, const TQString &, int ) ), this, SLOT( saveHeader( TQListViewItem*, const TQString &, int ) ) ); } } -void StdHeaderListView::showPopup( KListView * /*l*/, TQListViewItem *i, const TQPoint &p ) +void StdHeaderListView::showPopup( TDEListView * /*l*/, TQListViewItem *i, const TQPoint &p ) { if ( i ) kpop->exec( p ); |