Skip to content

Commit

Permalink
Allow insane small sizes
Browse files Browse the repository at this point in the history
#181 - Minimum size
#263 - Decrease minimal height
  • Loading branch information
agaida committed Aug 18, 2019
1 parent f495b41 commit a1abca3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ MainWindow::MainWindow(TerminalConfig &cfg,
setAttribute(Qt::WA_DeleteOnClose);

setupUi(this);
setMinimumSize(QSize(400, 200));
// Allow insane small sizes - reason:
// https://github.com/lxqt/qterminal/issues/181 - Minimum size
// https://github.com/lxqt/qterminal/issues/263 - Decrease minimal height
setMinimumSize(QSize(1, 1));

m_bookmarksDock = new QDockWidget(tr("Bookmarks"), this);
m_bookmarksDock->setObjectName(QStringLiteral("BookmarksDockWidget"));
Expand Down
7 changes: 6 additions & 1 deletion src/propertiesdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ PropertiesDialog::PropertiesDialog(QWidget *parent)
}
}
else
minWinSize = QSize(400, 200);
{
// Allow insane small sizes - reason:
// https://github.com/lxqt/qterminal/issues/181 - Minimum size
// https://github.com/lxqt/qterminal/issues/263 - Decrease minimal height
minWinSize = QSize(1, 1);
}
fixedWithSpinBox->setMinimum(minWinSize.width());
fixedHeightSpinBox->setMinimum(minWinSize.height());
if (!ag.isEmpty())
Expand Down

0 comments on commit a1abca3

Please sign in to comment.