Commit a4f39dc8 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: changed the size of the Warranty/Licence boxes

parent 28cc1aca
...@@ -349,7 +349,7 @@ QString loadText(std::string filename) ...@@ -349,7 +349,7 @@ QString loadText(std::string filename)
} }
} }
char text[4000]; char text[20000];
int i; int i;
for (i = 0; i < (int)sizeof(text) - 1; i++) { for (i = 0; i < (int)sizeof(text) - 1; i++) {
int c = fgetc(fp); int c = fgetc(fp);
...@@ -363,9 +363,9 @@ QString loadText(std::string filename) ...@@ -363,9 +363,9 @@ QString loadText(std::string filename)
if (strncmp(text, "Coding:UTF-8", 12) == 0) { if (strncmp(text, "Coding:UTF-8", 12) == 0) {
cdh_Strcpy(text, &text[13]); cdh_Strcpy(text, &text[13]);
return QString::fromUtf8(text); return QString::fromUtf8(text).trimmed();
} else { } else {
return QString::fromLatin1(text); return QString::fromLatin1(text).trimmed();
} }
} }
...@@ -385,9 +385,9 @@ CoWowWarrantQt::CoWowWarrantQt(CoWowQtObject* parent) ...@@ -385,9 +385,9 @@ CoWowWarrantQt::CoWowWarrantQt(CoWowQtObject* parent)
QLabel* label = new QLabel(loadText("acceptlicense.txt"), this); QLabel* label = new QLabel(loadText("acceptlicense.txt"), this);
label->adjustSize(); label->adjustSize();
label->setMinimumWidth(label->width()); label->setMinimumWidth(label->width());
label->setWordWrap(true);
add_expanding(inner_layout, label); add_expanding(inner_layout, label);
main_layout->setSpacing(label->fontMetrics().lineSpacing());
main_layout->addLayout(inner_layout, 1); main_layout->addLayout(inner_layout, 1);
QDialogButtonBox* buttons = new QDialogButtonBox(); QDialogButtonBox* buttons = new QDialogButtonBox();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment