make folderview a containment as well so people can start playing with it as they seem to not be able to comprehend the idea

svn path=/trunk/KDE/kdebase/apps/; revision=818916
This commit is contained in:
Aaron J. Seigo 2008-06-10 00:48:24 +00:00
parent bd0f20db68
commit 1df1a51a99
3 changed files with 6 additions and 4 deletions

View file

@ -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);

View file

@ -25,7 +25,7 @@
#include <KActionCollection>
#include <plasma/applet.h>
#include <plasma/containment.h>
#include "ui_folderviewConfig.h"
class KDirModel;
@ -39,7 +39,7 @@ struct ViewItem
QRect rect;
};
class FolderView : public Plasma::Applet
class FolderView : public Plasma::Containment
{
Q_OBJECT

View file

@ -25,7 +25,7 @@ Name[zh_CN]=文件夹视图
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