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
m_newMenu->createDirectory();
}
+void DolphinPart::setFilesToSelect(const KUrl::List& files)
+{
+ m_view->markUrlsAsSelected(files);
+}
+
#include "dolphinpart.moc"
// 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();
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,