Folder browser.
More...
#include <DockFolderBrowser.h>
|
void | sigDoubleClicked (const QString &szItem, bool bDir) |
| emit when Double clicked
|
|
|
| CDockFolderBrowser (const QString &title, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) |
|
| CDockFolderBrowser (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags()) |
|
void | setRootPath (const QString dir) |
| Set root path.
|
|
QString | rootPath () const |
| Get root path.
|
|
Folder browser.
Usage:
pDock->
setRootPath(RabbitCommon::CDir::Instance()->GetDirIcons(
true));
addDockWidget(Qt::LeftDockWidgetArea, pDock);
ui->menuTools->addAction(pDock->toggleViewAction());
void setRootPath(const QString dir)
Set root path.
QString rootPath() const
Get root path.
Definition at line 24 of file DockFolderBrowser.h.
◆ CDockFolderBrowser() [1/2]
CDockFolderBrowser::CDockFolderBrowser |
( |
const QString & |
title, |
|
|
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
flags = Qt::WindowFlags() |
|
) |
| |
|
explicit |
◆ CDockFolderBrowser() [2/2]
CDockFolderBrowser::CDockFolderBrowser |
( |
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
flags = Qt::WindowFlags() |
|
) |
| |
|
explicit |
◆ ~CDockFolderBrowser()
CDockFolderBrowser::~CDockFolderBrowser |
( |
| ) |
|
|
virtual |
◆ rootPath()
QString CDockFolderBrowser::rootPath |
( |
| ) |
const |
◆ setRootPath()
void CDockFolderBrowser::setRootPath |
( |
const QString |
dir | ) |
|
◆ sigDoubleClicked
void CDockFolderBrowser::sigDoubleClicked |
( |
const QString & |
szItem, |
|
|
bool |
bDir |
|
) |
| |
|
signal |
emit when Double clicked
- Parameters
-
szItem | item of double clicked |
bDir |
- true: item is directory
- false: item is folder
|
◆ m_bDetails
bool CDockFolderBrowser::m_bDetails |
|
private |
◆ m_pModel
QFileSystemModel* CDockFolderBrowser::m_pModel |
|
private |
◆ ui
Ui::CDockFolderBrowser* CDockFolderBrowser::ui |
|
private |
The documentation for this class was generated from the following files: