[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/apps/plasma/applets/folderview
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2008-06-10 0:48:25
Message-ID: 1213058905.086604.3975.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 818916 by aseigo:
make folderview a containment as well so people can start playing with it as they \
seem to not be able to comprehend the idea
M +3 -1 folderview.cpp
M +2 -2 folderview.h
M +1 -1 plasma-applet-folderview.desktop
--- trunk/KDE/kdebase/apps/plasma/applets/folderview/folderview.cpp #818915:818916
@@ -56,8 +56,10 @@
FolderView::FolderView(QObject *parent, const QVariantList &args)
- : Plasma::Applet(parent, args), m_actionCollection(this)
+ : Plasma::Containment(parent, args),
+ m_actionCollection(this)
{
+ setContainmentType(DesktopContainment);
setAspectRatioMode(Plasma::IgnoreAspectRatio);
setHasConfigurationInterface(true);
setAcceptHoverEvents(true);
--- trunk/KDE/kdebase/apps/plasma/applets/folderview/folderview.h #818915:818916
@@ -25,7 +25,7 @@
#include <KActionCollection>
-#include <plasma/applet.h>
+#include <plasma/containment.h>
#include "ui_folderviewConfig.h"
class KDirModel;
@@ -39,7 +39,7 @@
QRect rect;
};
-class FolderView : public Plasma::Applet
+class FolderView : public Plasma::Containment
{
Q_OBJECT
--- trunk/KDE/kdebase/apps/plasma/applets/folderview/plasma-applet-folderview.desktop \
#818915:818916 @@ -25,7 +25,7 @@
Name[zh_TW]=資料夾檢視
Type=Service
Icon=folder
-X-KDE-ServiceTypes=Plasma/Applet
+X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
X-Plasma-DropMimeTypes=inode/directory
X-KDE-Library=plasma_applet_folderview
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic