Added logic to better size the comment area of Qt palette config window.
This commit is contained in:
parent
39a50e46f4
commit
9f85d445c5
|
@ -67,7 +67,7 @@ PaletteConfDialog_t::PaletteConfDialog_t(QWidget *parent)
|
|||
|
||||
style = this->style();
|
||||
|
||||
resize(512, 600);
|
||||
resize(512, 512);
|
||||
|
||||
// sync with config
|
||||
g_config->getOption("SDL.Hue", &hue);
|
||||
|
@ -268,6 +268,10 @@ PaletteConfDialog_t::PaletteConfDialog_t(QWidget *parent)
|
|||
comments->moveCursor(QTextCursor::Start);
|
||||
comments->setReadOnly(true);
|
||||
|
||||
QFont font = comments->currentFont();
|
||||
QFontMetrics metrics(font);
|
||||
comments->setMinimumHeight( 7 * metrics.lineSpacing() );
|
||||
|
||||
mainLayout->addWidget(comments);
|
||||
|
||||
closeButton = new QPushButton( tr("Close") );
|
||||
|
|
Loading…
Reference in New Issue