]> git.sesse.net Git - kdenlive/blobdiff - src/effectslistwidget.h
use const'ref
[kdenlive] / src / effectslistwidget.h
index 9f8ac428186dc9340217e76bec6d1c7adc945d4d..c44d0f65f36db0f66b8a253d9cae2082de6f2114 100644 (file)
@@ -45,11 +45,12 @@ protected:
     virtual void dragMoveEvent(QDragMoveEvent *event);
     virtual void contextMenuEvent(QContextMenuEvent * event);
     virtual QMimeData *mimeData(const QList<QTreeWidgetItem *> list) const;
+    virtual void keyPressEvent(QKeyEvent *e);
 
 private:
     QMenu *m_menu;
     /** @brief Returns the folder item whose name == @param name. */
-    QTreeWidgetItem *findFolder(const QString name);
+    QTreeWidgetItem *findFolder(const QString &name);
 
     /** @brief Loads the effects from the given effectlist as item of this widget.
      * @param effectlist effectlist containing the effects that should be loaded
@@ -60,10 +61,13 @@ private:
      * @param current name of selected effect before reload; if an effect name matches this one it will become selected
      * @param found will be set to true if an effect name matches current
      */
-    void loadEffects(const EffectsList *effectlist, KIcon icon, QTreeWidgetItem *defaultFolder, const QList<QTreeWidgetItem *> *folders, const QString type, const QString current, bool *found);
+    void loadEffects(const EffectsList *effectlist, KIcon icon, QTreeWidgetItem *defaultFolder, const QList<QTreeWidgetItem *> *folders, int type, const QString current, bool *found);
 
 private slots:
     void slotExpandItem(const QModelIndex & index);
+    
+signals:
+    void applyEffect(const QDomElement);
 };
 
 #endif