This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Is there a patch for the quickaccess plasmoid for kde42?

Tags: None
(comma "," separated)
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS
Hello,

with openSUSE 11.0 and KDE4.2.0 I can not compile quickaccess 0.7.1:

/quickaccess-0.7.1/quickaccess.h:25:33: error: plasma/widgets/icon.h: Datei oder Verzeichnis nicht gefunden

It seem to me that some names have changed to iconwidget but I am too unfamiliar with this stuff.

Has any one quickaccess up and running in a similar environment?

Thanks a lot
-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
JontheEchinda
KDE Developer
Posts
309
Karma
4
OS
Kubuntu has patches for their packages:

kubuntu_01_port_to_kde_4.2_api.diff
Code: Select all
Index: plasmoid-quickaccess-0.7.1/quickaccess.cpp
===================================================================
--- plasmoid-quickaccess-0.7.1.orig/quickaccess.cpp   2008-12-17 21:23:39.000000000 -0500
+++ plasmoid-quickaccess-0.7.1/quickaccess.cpp   2008-12-17 21:38:51.000000000 -0500
@@ -40,7 +40,7 @@
 QuickAccess::QuickAccess(QObject *parent, const QVariantList &args)
   :Plasma::Applet(parent, args)
   ,m_settings(new Settings(this))
-  ,m_icon(new Plasma::Icon(this))
+  ,m_icon(new Plasma::IconWidget(this))
   ,m_dialog(0)
   ,m_dialogSize(QSize())
   ,m_dragOver(false)
Index: plasmoid-quickaccess-0.7.1/quickaccess.h
===================================================================
--- plasmoid-quickaccess-0.7.1.orig/quickaccess.h   2008-12-17 21:23:38.000000000 -0500
+++ plasmoid-quickaccess-0.7.1/quickaccess.h   2008-12-17 21:41:47.000000000 -0500
@@ -22,7 +22,7 @@
 
 //Plasma includes
 #include
-#include
+#include
 
 //locale includes
 #include "popupdialog.h"
@@ -63,7 +63,7 @@
     
   private:
     Settings *m_settings;
-    Plasma::Icon *m_icon;
+    Plasma::IconWidget *m_icon;
     PopupDialog *m_dialog;
     QSize m_dialogSize;
     bool m_dragOver;


Due to a change to the KDE4 CMake build system you'll also need to make these changes:
Code: Select all
Index: plasmoid-quickaccess-0.7.1/CMakeLists.txt
===================================================================
--- plasmoid-quickaccess-0.7.1.orig/CMakeLists.txt   2009-01-13 19:53:28.000000000 +0100
+++ plasmoid-quickaccess-0.7.1/CMakeLists.txt   2009-01-13 19:54:05.000000000 +0100
@@ -1,30 +1,29 @@
 # Project Needs a name ofcourse
 project(quickaccess)
-
+
 # Find the required Libaries
 find_package(KDE4 REQUIRED)
 include(KDE4Defaults)
-find_package(Plasma REQUIRED)
-
+
 add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
 include_directories(
    ${CMAKE_SOURCE_DIR}
    ${CMAKE_BINARY_DIR}
    ${KDE4_INCLUDES}
    )
-
+
 # We add our source code here
 set(quickaccess_SRCS quickaccess.cpp popupdialog.cpp itemview.cpp pluginwidget.cpp effects.cpp button.cpp
            dirmodel.cpp label.cpp iconmanager.cpp resizedialog.cpp settings.cpp pluginmodel.cpp)
-
+
 # Now make sure all files get to the right place
 kde4_add_ui_files(quickaccess_SRCS quickaccessConfig.ui pluginwidgetbase.ui)
 kde4_add_plugin(plasma_applet_quickaccess ${quickaccess_SRCS})
-target_link_libraries(plasma_applet_quickaccess
-                      ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kfile konq)
-
+target_link_libraries(plasma_applet_quickaccess
+                      ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} kfile konq)
+
 install(TARGETS plasma_applet_quickaccess
         DESTINATION ${PLUGIN_INSTALL_DIR})
-
+
 install(FILES plasma-applet-quickaccess.desktop
         DESTINATION ${SERVICES_INSTALL_DIR})
 No newline at end of file


JontheEchinda, proud to be a member of the Kubuntu team since July 2008.
Image
Image
User avatar
google01103
Manager
Posts
6668
Karma
25
if you go to the kde-look page you'll see a new kde4 version http://www.kde-look.org/content/show.ph ... a26516181f


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS
Perfect!

I just compiled and installed it THANKS !!

-bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
neversfelde
Global Moderator
Posts
55
Karma
0
OS
Mark thread as solved, please. This time I did it. Thank you.


neversfelde on irc.freenode.net
http://www.kubuntu-de.org
User avatar
bushveld
Registered Member
Posts
174
Karma
0
OS
Sorry, I forgot.
By the way: how do I close a thread which came to its end but is not "solved"

Danke ;-)
- bushveld


openSUSE 11.2 and KDE 4.4.0 -- Vita brevis! --
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Only Super Moderators and Administrators ( or if your forum has a Moderator ) can close threads.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]