Updraft
1.0
Open source glider flight visualisation tool.
|
Editor for QDir in settings dialog. More...
#include <directoryeditor.h>
Public Member Functions | |
DirectoryEditor (QWidget *parent=0) | |
const QDir & | directory () const |
Gets the directory property value of this editor. | |
void | setDirectory (const QDir &dir) |
Sets the directory property displayed in the editor. | |
Properties | |
QDir | directory |
Private Slots | |
void | onClick () |
Reacts on the button click and displays the standard directory selection dialog that allows the user to change the directory property. | |
Private Attributes | |
QDir | dirProp |
The property of this editor. |
Editor for QDir in settings dialog.
Displays a button that opens standard directory select dialog when clicked.
Updraft::Core::DirectoryEditor::DirectoryEditor | ( | QWidget * | parent = 0 | ) | [explicit] |
const QDir& Updraft::Core::DirectoryEditor::directory | ( | ) | const |
Gets the directory property value of this editor.
void Updraft::Core::DirectoryEditor::onClick | ( | ) | [private, slot] |
Reacts on the button click and displays the standard directory selection dialog that allows the user to change the directory property.
void Updraft::Core::DirectoryEditor::setDirectory | ( | const QDir & | dir | ) |
Sets the directory property displayed in the editor.
dir | The directory to be displayed in the editor. |
QDir Updraft::Core::DirectoryEditor::dirProp [private] |
The property of this editor.
const QDir & Updraft::Core::DirectoryEditor::directory [read, write] |