mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
fixed bug: can not build for android
This commit is contained in:
parent
4292c22bd4
commit
a8f40b1363
@ -81,12 +81,12 @@ SAKMainWindow::SAKMainWindow(QWidget *parent)
|
||||
setCentralWidget(scrollArea);
|
||||
scrollArea->setLayout(layout);
|
||||
scrollArea->layout()->setContentsMargins(6, 6, 6, 6);
|
||||
scrollArea->setWidget(mpTabWidget);
|
||||
scrollArea->setWidget(tabWidget);
|
||||
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
|
||||
QDesktopWidget *desktop = QApplication::desktop();
|
||||
QRect rect = desktop->screenGeometry(mpTabWidget);
|
||||
mpTabWidget->setFixedWidth(rect.width());
|
||||
QRect rect = desktop->screenGeometry(tabWidget);
|
||||
tabWidget->setFixedWidth(rect.width());
|
||||
#else
|
||||
QWidget *centralWidget = new QWidget(this);
|
||||
setCentralWidget(centralWidget);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user