add_subdirectory(kio)
add_subdirectory(wizard)
add_subdirectory(monolithic)
-
-if(NOT KDE_VERSION VERSION_LESS "4.6.0")
- add_subdirectory(fileitemactionplugin)
-else(NOT KDE_VERSION VERSION_LESS "4.6.0")
- message(WARNING "Upgrade to kde-4.6 if you want \"Send via bluetooth\" action in Dolphin/Konqueror")
-endif(NOT KDE_VERSION VERSION_LESS "4.6.0")
+add_subdirectory(fileitemactionplugin)
install(FILES bluedevil.notifyrc
DESTINATION ${DATA_INSTALL_DIR}/bluedevil)
m_mediaStateTimerId = 0;
}
IconTasks::ToolTipContent data;
-#if KDE_IS_VERSION(4, 7, 0)
data.setInstantPopup(m_applet->instantToolTip());
-#endif
IconTasks::ToolTipManager::self()->setContent(this, data);
}
void AppLauncherItem::updateToolTip()
{
IconTasks::ToolTipContent data(m_launcher->name(), m_launcher->genericName(), m_launcher->icon());
-#if KDE_IS_VERSION(4, 7, 0)
data.setInstantPopup(m_applet->instantToolTip());
-#endif
QString key = mediaButtonKey();
if (!key.isEmpty()) {
data.setPlayState(MediaButtons::self()->playbackStatus(key));
(dbusName.isEmpty() ? QString() : i18n("<tr><td align=\"right\">D-Bus:</td><td>%1</td></tr>", dbusName)) +
QString("</table>"),
model->data(index, Qt::DisplayRole).toString()
-#if KDE_IS_VERSION(4, 7, 0)
,QString(), KMessageBox::WindowModal
-#endif
);
}
IconTasks::ToolTipContent data;
data.setClickable(true);
-#if KDE_IS_VERSION(4, 7, 0)
data.setInstantPopup(m_applet->instantToolTip());
-#endif
data.setHighlightWindows(m_applet->highlightWindows());
data.setVertical(Plasma::Vertical == m_applet->formFactor());
!m_applet->groupManager().showOnlyCurrentDesktop() || !m_task.data()->isOnCurrentDesktop()
? m_task.data()->desktop() : 0));
data.setClickable(true);
-#if KDE_IS_VERSION(4, 7, 0)
data.setInstantPopup(m_applet->instantToolTip());
-#endif
data.setHighlightWindows(m_applet->highlightWindows());
data.setVertical(Plasma::Vertical == m_applet->formFactor());
void KFileReplacePart::loadLocationsList()
{
KConfigGroup cg( m_config,"Directories");
- #if KDE_IS_VERSION(3,1,3)
QString locationsEntryList = cg.readPathEntry(rcDirectoriesList, QString());
- #else
- QString locationsEntryList = cg.readEntry(rcDirectoriesList);
- #endif
if(locationsEntryList.isEmpty())
locationsEntryList = QDir::current().path();
void KFileReplacePart::loadFiltersList()
{
KConfigGroup cg( m_config,"Filters");
- #if KDE_IS_VERSION(3,1,3)
QString filtersEntryList = cg.readPathEntry(rcFiltersList, QString());
- #else
- QString filtersEntryList = cg.readEntry(rcFiltersList);
- #endif
if(filtersEntryList.isEmpty())
filtersEntryList = "*.htm;*.html;*.xml;*.xhtml;*.css;*.js;*.php";
void PageView::addWebShortcutsMenu( KMenu * menu, const QString & text )
{
-#if KDE_IS_VERSION(4,5,70)
if ( text.isEmpty() )
{
return;
menu->addMenu(webShortcutsMenu);
}
}
-#endif
}
//BEGIN private SLOTS
void PageView::slotHandleWebShortcutAction()
{
-#if KDE_IS_VERSION(4,5,70)
KAction *action = qobject_cast<KAction*>( sender() );
if (action)
KToolInvocation::invokeBrowser( filterData.uri().url() );
}
}
-#endif
}
void PageView::slotConfigureWebShortcuts()
#include <kdeversion.h>
#include <kio/thumbcreator.h>
-#if KDE_IS_VERSION(4,7,0)
class PoCreator : public ThumbCreatorV2
-#else
-class PoCreator : public ThumbCreator
-#endif
{
public:
explicit PoCreator();