mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
36 lines
653 B
C++
36 lines
653 B
C++
#ifndef VDIRINFODIALOG_H
|
|
#define VDIRINFODIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class QPushButton;
|
|
class QString;
|
|
|
|
class VDirInfoDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
VDirInfoDialog(const QString &title, const QString &info, const QString &defaultName,
|
|
QWidget *parent = 0);
|
|
QString getNameInput() const;
|
|
|
|
private slots:
|
|
void enableOkButton();
|
|
|
|
private:
|
|
void setupUI();
|
|
|
|
QLabel *infoLabel;
|
|
QLabel *nameLabel;
|
|
QLineEdit *nameEdit;
|
|
QPushButton *okBtn;
|
|
QPushButton *cancelBtn;
|
|
|
|
QString title;
|
|
QString info;
|
|
QString defaultName;
|
|
};
|
|
#endif // VDIRINFODIALOG_H
|