From 416309451958efbd22b4904aa9fdd1c1d54885f5 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Thu, 1 Oct 2015 18:36:18 +0200 Subject: Initial TDE conversion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/setupdialogprg.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/setupdialogprg.cpp') diff --git a/src/setupdialogprg.cpp b/src/setupdialogprg.cpp index 1723af1..38a11e8 100644 --- a/src/setupdialogprg.cpp +++ b/src/setupdialogprg.cpp @@ -9,12 +9,12 @@ // Copyright: See COPYING file that comes with this distribution // // -#include +#include #include #include -#include +#include #include -#include +#include #include #include #include @@ -53,7 +53,7 @@ SetupDialogPrg::SetupDialogPrg(TQWidget *parent, const char *name) progPath = locateLocal("data", "kooldock"); menuPath = progPath + TQString("/menu/"); - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup("kooldock"); appdlg=new appPropPrg(); @@ -65,7 +65,7 @@ SetupDialogPrg::SetupDialogPrg(TQWidget *parent, const char *name) connect(appdlg, SIGNAL(apply()), SLOT(appRestart())); //Lets load the theme List - KStandardDirs sys; + TDEStandardDirs sys; TQStringList bgPath = sys.findDirs("data", "kooldock/backgrounds"); for(unsigned int i=0; ivalue(); kdDebug(0) << "Saving preferences..." << endl; - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup("kooldock"); config->writeEntry("ShowTaskbar", fShowTaskbar); config->writeEntry("MinimizedOnly", fMinimizedOnly); @@ -234,7 +234,7 @@ void SetupDialogPrg::configApply() if (chkImg->isChecked()) { //Lets find exactly where the selected theme is - KStandardDirs sys; + TDEStandardDirs sys; TQString theme_dir="kooldock/backgrounds/"+theme->currentText(); TQStringList bgPath = sys.findDirs("data", theme_dir); @@ -373,7 +373,7 @@ void SetupDialogPrg::chkHidden() void SetupDialogPrg::applist_dropped(TQDropEvent*e,const TQValueList&) { - KIconLoader icon_obj; + TDEIconLoader icon_obj; TQStringList lst; TQString name; int pos; @@ -535,7 +535,7 @@ void SetupDialogPrg::appFill() KSimpleConfig *desktopfile; TQDir homeDir = TQDir::home(); - KIconLoader icon_obj; + TDEIconLoader icon_obj; TQPixmap pixm; if(homeDir.exists(progPath)) @@ -550,8 +550,8 @@ void SetupDialogPrg::appFill() { desktopfile = new KSimpleConfig( menuPath + (*it), TRUE); desktopfile->setGroup("Desktop Entry"); - TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon") ,KIcon::Desktop,0,KIcon::DefaultState,0L,false); - new KIconViewItem(applist, desktopfile->readEntry("Name"), pixm); + TQPixmap pixm=icon_obj.loadIcon(desktopfile->readEntry("Icon") ,TDEIcon::Desktop,0,TDEIcon::DefaultState,0L,false); + new TDEIconViewItem(applist, desktopfile->readEntry("Name"), pixm); delete(desktopfile); } } @@ -590,8 +590,8 @@ void SetupDialogPrg::applist_contextMenuRequested(TQIconViewItem *e,const TQPoin { if(e!=NULL) { - KPopupMenu *popup=new KPopupMenu(); - KPopupMenu *setpos=new KPopupMenu(); + TDEPopupMenu *popup=new TDEPopupMenu(); + TDEPopupMenu *setpos=new TDEPopupMenu(); fileName=e->text(); oldPos=e->index(); -- cgit v1.2.3