mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +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
|
||||
notebookLabel = new QLabel(tr("Notebook"));
|
||||
directoryLabel = new QLabel(tr("Directory"));
|
||||
notebookComboBox = new QComboBox();
|
||||
notebookComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
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;
|
||||
nbLayout->addLayout(nbTopLayout);
|
||||
nbLayout->addWidget(notebookLabel);
|
||||
nbLayout->addWidget(notebookComboBox);
|
||||
nbLayout->addWidget(directoryLabel);
|
||||
nbLayout->addWidget(directoryTree);
|
||||
QWidget *nbContainer = new QWidget();
|
||||
nbContainer->setLayout(nbLayout);
|
||||
|
@ -38,6 +38,7 @@ private:
|
||||
void initToolBar();
|
||||
|
||||
QLabel *notebookLabel;
|
||||
QLabel *directoryLabel;
|
||||
QComboBox *notebookComboBox;
|
||||
VDirectoryTree *directoryTree;
|
||||
VFileList *fileList;
|
||||
|
Loading…
x
Reference in New Issue
Block a user