mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
bd0f20db68
commit
1df1a51a99
3 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue