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();
|
style = this->style();
|
||||||
|
|
||||||
resize(512, 600);
|
resize(512, 512);
|
||||||
|
|
||||||
// sync with config
|
// sync with config
|
||||||
g_config->getOption("SDL.Hue", &hue);
|
g_config->getOption("SDL.Hue", &hue);
|
||||||
|
@ -268,6 +268,10 @@ PaletteConfDialog_t::PaletteConfDialog_t(QWidget *parent)
|
||||||
comments->moveCursor(QTextCursor::Start);
|
comments->moveCursor(QTextCursor::Start);
|
||||||
comments->setReadOnly(true);
|
comments->setReadOnly(true);
|
||||||
|
|
||||||
|
QFont font = comments->currentFont();
|
||||||
|
QFontMetrics metrics(font);
|
||||||
|
comments->setMinimumHeight( 7 * metrics.lineSpacing() );
|
||||||
|
|
||||||
mainLayout->addWidget(comments);
|
mainLayout->addWidget(comments);
|
||||||
|
|
||||||
closeButton = new QPushButton( tr("Close") );
|
closeButton = new QPushButton( tr("Close") );
|
||||||
|
|
Loading…
Reference in New Issue