-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMainWindowStorage.cpp
More file actions
29 lines (23 loc) · 863 Bytes
/
MainWindowStorage.cpp
File metadata and controls
29 lines (23 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <QDockWidget>
#include <QTextBrowser>
#include "MainWindow.h"
#include "StorageView.h"
#include "ui_MainWindow.h"
void MainWindow::createStorageWindow(bool showWindow, QString storagePath)
{
QDockWidget *dock = new QDockWidget(tr("Storage"), this);
dock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea | Qt::BottomDockWidgetArea);
storage = new StorageView(storagePath, storageMinLimit, storageMinData, dock);
storage->setMinimumWidth(250);
//storage->setMaximumWidth(250);
dock->setWidget(storage);
// dock->resize(250,400);
addDockWidget(Qt::BottomDockWidgetArea, dock);
ui->menuTools->addAction(dock->toggleViewAction());
//resize Qt buck
dock->setFloating(true);
dock->hide();
dock->setFloating(false);
if(showWindow)
dock->show();
}