mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
change the layout of the directory panel
Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
1b220efb64
commit
88633d22da
@ -27,18 +27,15 @@ void VMainWindow::setupUI()
|
|||||||
{
|
{
|
||||||
// Notebook directory browser tree
|
// Notebook directory browser tree
|
||||||
notebookLabel = new QLabel(tr("Notebook"));
|
notebookLabel = new QLabel(tr("Notebook"));
|
||||||
|
directoryLabel = new QLabel(tr("Directory"));
|
||||||
notebookComboBox = new QComboBox();
|
notebookComboBox = new QComboBox();
|
||||||
|
notebookComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||||
directoryTree = new VDirectoryTree();
|
directoryTree = new VDirectoryTree();
|
||||||
|
|
||||||
QHBoxLayout *nbTopLayout = new QHBoxLayout;
|
|
||||||
notebookComboBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
|
||||||
notebookComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
|
||||||
nbTopLayout->setAlignment(Qt::AlignLeft);
|
|
||||||
nbTopLayout->addWidget(notebookLabel);
|
|
||||||
nbTopLayout->addWidget(notebookComboBox);
|
|
||||||
|
|
||||||
QVBoxLayout *nbLayout = new QVBoxLayout;
|
QVBoxLayout *nbLayout = new QVBoxLayout;
|
||||||
nbLayout->addLayout(nbTopLayout);
|
nbLayout->addWidget(notebookLabel);
|
||||||
|
nbLayout->addWidget(notebookComboBox);
|
||||||
|
nbLayout->addWidget(directoryLabel);
|
||||||
nbLayout->addWidget(directoryTree);
|
nbLayout->addWidget(directoryTree);
|
||||||
QWidget *nbContainer = new QWidget();
|
QWidget *nbContainer = new QWidget();
|
||||||
nbContainer->setLayout(nbLayout);
|
nbContainer->setLayout(nbLayout);
|
||||||
|
@ -38,6 +38,7 @@ private:
|
|||||||
void initToolBar();
|
void initToolBar();
|
||||||
|
|
||||||
QLabel *notebookLabel;
|
QLabel *notebookLabel;
|
||||||
|
QLabel *directoryLabel;
|
||||||
QComboBox *notebookComboBox;
|
QComboBox *notebookComboBox;
|
||||||
VDirectoryTree *directoryTree;
|
VDirectoryTree *directoryTree;
|
||||||
VFileList *fileList;
|
VFileList *fileList;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user