|
|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
#include <tdeconfig.h>
|
|
|
|
|
#include <tdeversion.h>
|
|
|
|
|
#include <kdebug.h>
|
|
|
|
|
#include <kdesktopfile.h>
|
|
|
|
|
#include <tdedesktopfile.h>
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
|
#include <kurl.h>
|
|
|
|
|
@ -113,7 +113,7 @@ void ToolsConfigWidget::fillListBox(TQListBox *lb, const TQDict<ToolsConfigEntry
|
|
|
|
|
for (; it.current(); ++it) {
|
|
|
|
|
ToolsConfigEntry *entry = it.current();
|
|
|
|
|
if (entry->isdesktopfile) {
|
|
|
|
|
KDesktopFile df(entry->cmdline);
|
|
|
|
|
TDEDesktopFile df(entry->cmdline);
|
|
|
|
|
lb->insertItem(SmallIcon(df.readIcon()), entry->menutext);
|
|
|
|
|
} else {
|
|
|
|
|
lb->insertItem(entry->menutext);
|
|
|
|
|
@ -259,8 +259,8 @@ bool ToolsConfigWidget::eventFilter(TQObject *o, TQEvent *e)
|
|
|
|
|
if (KURLDrag::decode(de, fileList)) {
|
|
|
|
|
KURL::List::ConstIterator it;
|
|
|
|
|
for (it = fileList.begin(); it != fileList.end(); ++it) {
|
|
|
|
|
if ((*it).isLocalFile() && KDesktopFile::isDesktopFile((*it).path())) {
|
|
|
|
|
KDesktopFile df((*it).path());
|
|
|
|
|
if ((*it).isLocalFile() && TDEDesktopFile::isDesktopFile((*it).path())) {
|
|
|
|
|
TDEDesktopFile df((*it).path());
|
|
|
|
|
ToolsConfigEntry *entry = new ToolsConfigEntry;
|
|
|
|
|
entry->menutext = df.readName();
|
|
|
|
|
entry->cmdline = (*it).path();
|
|
|
|
|
|