diff options
| author | David Faure <[email protected]> | 2010-01-27 23:55:55 +0000 |
|---|---|---|
| committer | David Faure <[email protected]> | 2010-01-27 23:55:55 +0000 |
| commit | c3584e31018b102f75a8a87a34ccba186f291a04 (patch) | |
| tree | 173ff77a56cf85fed2b6d35f0d942f33c50a49a9 /src/dolphinpart.h | |
| parent | 6de569ab40bf85324533b4ee4e42099f83d65a7d (diff) | |
Implement the --select option in konqueror again, using Peter's nice work in Dolphin.
While at it, I reworked the handling of command-line options in main completely,
to factorize code and make --select do the right thing even in case of multiple args
(wasn't supported in kde3).
svn path=/trunk/KDE/kdebase/apps/; revision=1081246
Diffstat (limited to 'src/dolphinpart.h')
| -rw-r--r-- | src/dolphinpart.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dolphinpart.h b/src/dolphinpart.h index 049432cf8..2b8129f3d 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -52,6 +52,9 @@ class DolphinPart : public KParts::ReadOnlyPart // Used by konqueror when typing something like /home/dfaure/*.diff in the location bar Q_PROPERTY( QString nameFilter READ nameFilter WRITE setNameFilter ) + // Used by konqueror to implement the --select command-line option + Q_PROPERTY( KUrl::List filesToSelect READ filesToSelect WRITE setFilesToSelect ) + public: explicit DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantList& args); ~DolphinPart(); @@ -214,6 +217,12 @@ private Q_SLOTS: void createDirectory(); + /** + * Called by konqueror --select + */ + void setFilesToSelect(const KUrl::List& files); + KUrl::List filesToSelect() const { return KUrl::List(); } // silence moc + private: void createActions(); void createGoAction(const char* name, const char* iconName, |
