summaryrefslogtreecommitdiffstats
path: root/sidebar/dndlistbox.cpp
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-10-05 14:54:22 +0200
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-10-06 19:27:41 +0900
commiteac5fa9db4545dd832b13bc5f79d7bb5d274c62b (patch)
treea11ebdcd9d44be4b20015092dd61e70cd5b2fefa /sidebar/dndlistbox.cpp
parent6a98f451b6617ce0a3602f2e21b26acfb2bd6e8e (diff)
downloadtde-style-baghira-eac5fa9db4545dd832b13bc5f79d7bb5d274c62b.tar.gz
tde-style-baghira-eac5fa9db4545dd832b13bc5f79d7bb5d274c62b.zip
Remove definition KDE_IS_VERSION.
Signed-off-by: gregory guy <gregory-tde@laposte.net> (cherry picked from commit 610b0fea26e0855ea2ded8d935288378335346b6)
Diffstat (limited to 'sidebar/dndlistbox.cpp')
-rw-r--r--sidebar/dndlistbox.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/sidebar/dndlistbox.cpp b/sidebar/dndlistbox.cpp
index aac7484..a11798a 100644
--- a/sidebar/dndlistbox.cpp
+++ b/sidebar/dndlistbox.cpp
@@ -143,13 +143,8 @@ MediaListBox::MediaListBox( TQWidget * parent, const char * name, WFlags f ) : R
popupMenu->insertItem(i18n("Device List"), devicePopup, 1, 0);
popupMenu->insertSeparator( 0 );
-#if KDE_IS_VERSION(3,4,90)
insertItem(new ListBoxDevice("system", size_, i18n("My Computer"), "system:/", "", "", TRUE, FALSE, FALSE));
insertItem(new ListBoxDevice("network", size_, i18n("Network"), "remote:/", "", "", TRUE, FALSE, FALSE));
-#else
- insertItem(new ListBoxDevice("system", size_, i18n("My Computer"), "media:/", "", "", TRUE, FALSE, FALSE));
- insertItem(new ListBoxDevice("network", size_, i18n("Network"), "lan:/localhost", "", "", TRUE, FALSE, FALSE));
-#endif
insertItem(new ListBoxDevice("hdd_mount", size_, i18n("Startvolume"), TQDir::rootDirPath(), "", "", TRUE, FALSE, FALSE));
client = TDEApplication::dcopClient();
client->connectDCOPSignal("kded", "mediamanager", "mediumAdded(TQString)", "BaghiraSidebarIface", "mediumAdded(TQString)", FALSE);
@@ -279,11 +274,7 @@ ListBoxDevice *MediaListBox::createListBoxDevice(TQStringList & deviceProperties
label = deviceProperties[MEDIALIST_PROPS*n+LABEL];
label = i18n(label.section( " (", 0, 0 ).utf8());
}
-#if KDE_IS_VERSION(3,4,90)
return new ListBoxDevice( icon, size_, label, "system:/media/"+deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+DEVICE_NODE], deviceProperties[MEDIALIST_PROPS*n+MOUNTED] == "true", icon.contains("dvd") || icon.contains("cdrom") || icon.contains("cdwriter"),icon.contains("floppy"), devicePopup->insertItem(deviceProperties[MEDIALIST_PROPS*n+NAME], this, SLOT(toggleDevice(int))));
-#else
- return new ListBoxDevice( icon, size_, label, "media:/"+deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+NAME], deviceProperties[MEDIALIST_PROPS*n+DEVICE_NODE], deviceProperties[MEDIALIST_PROPS*n+MOUNTED] == "true", icon.contains("dvd") || icon.contains("cdrom") || icon.contains("cdwriter"),icon.contains("floppy"),devicePopup->insertItem(deviceProperties[MEDIALIST_PROPS*n+NAME], this, SLOT(toggleDevice(int))));
-#endif
}
int MediaListBox::index (const TQString & name )