Skip to content
Snippets Groups Projects
Unverified Commit 9debe2e3 authored by Pospelov, Gennady's avatar Pospelov, Gennady Committed by GitHub
Browse files

Merge branch 'develop' into CsvImportAssistant

parents 35906644 4a0dcaac
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,13 @@ void DocksController::onResetLayout() ...@@ -55,6 +55,13 @@ void DocksController::onResetLayout()
for (auto& it : m_docks) for (auto& it : m_docks)
m_mainWindow->addDockWidget(it.second.area(), it.second.dock()); m_mainWindow->addDockWidget(it.second.area(), it.second.dock());
// Fixes issue: https://bugreports.qt.io/browse/QTBUG-65592
#if QT_VERSION >= 0x050600
dockWidgetList = m_mainWindow->dockWidgets();
if (dockWidgetList.size()>0)
m_mainWindow->resizeDocks({dockWidgetList.first()}, {10}, Qt::Horizontal);
#endif
for (QDockWidget* dockWidget : dockWidgetList) for (QDockWidget* dockWidget : dockWidgetList)
dockWidget->show(); dockWidget->show();
......
...@@ -27,6 +27,8 @@ class BA_CORE_API_ SampleWidgetBox : public QWidget ...@@ -27,6 +27,8 @@ class BA_CORE_API_ SampleWidgetBox : public QWidget
public: public:
explicit SampleWidgetBox(SampleDesignerInterface *core, QWidget *parent); explicit SampleWidgetBox(SampleDesignerInterface *core, QWidget *parent);
QSize minimumSizeHint() const override { return QSize(300, 300); }
private: private:
SampleDesignerInterface *m_core; SampleDesignerInterface *m_core;
QDesignerWidgetBoxInterface *m_widgetBox; QDesignerWidgetBoxInterface *m_widgetBox;
......
...@@ -141,7 +141,7 @@ QBoxLayout* AboutApplicationDialog::createButtonLayout() ...@@ -141,7 +141,7 @@ QBoxLayout* AboutApplicationDialog::createButtonLayout()
result->addStretch(1); result->addStretch(1);
result->addWidget(closeButton); result->addWidget(closeButton);
static const char mydata[] = {0x62, 0x65, 0x65, 0x72}; static const char mydata[] = {0x64, 0x65, 0x76, 0x73};
QByteArray b = QByteArray::fromRawData(mydata, sizeof(mydata)); QByteArray b = QByteArray::fromRawData(mydata, sizeof(mydata));
auto f = new ShortcodeFilter(b, this); auto f = new ShortcodeFilter(b, this);
connect(f, &ShortcodeFilter::found, this, [=]() { layout()->addWidget(createLogoLabel());}); connect(f, &ShortcodeFilter::found, this, [=]() { layout()->addWidget(createLogoLabel());});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment