Changeset 14196 for trunk/qt/file-tree.h


Ignore:
Timestamp:
Sep 8, 2013, 7:03:25 PM (10 years ago)
Author:
jordan
Message:

(trunk, qt) #4813: allow launching files in Qt interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/file-tree.h

    r14185 r14196  
    6969    int fileIndex () const { return myFileIndex; }
    7070    uint64_t totalSize () const { return myTotalSize; }
     71    QString path () const;
     72    bool isComplete () const;
    7173
    7274  private:
     
    116118    void wantedChanged (const QSet<int>& fileIndices, bool);
    117119    void pathEdited (const QString& oldpath, const QString& newname);
     120    void openRequested (const QString& path);
    118121
    119122  public:
     
    139142  public slots:
    140143    void clicked (const QModelIndex & index);
     144    void doubleClicked (const QModelIndex & index);
    141145};
    142146
     
    168172    void wantedChanged (const QSet<int>& fileIndices, bool wanted);
    169173    void pathEdited (const QString& oldpath, const QString& newname);
     174    void openRequested (const QString& path);
    170175
    171176  protected:
     
    179184  public slots:
    180185    void onClicked (const QModelIndex& index);
     186    void onDoubleClicked (const QModelIndex& index);
     187    void onOpenRequested (const QString& path);
    181188};
    182189
Note: See TracChangeset for help on using the changeset viewer.