|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
|
... |
|
... |
436 |
|
436 |
|
437 |
void UIPrefsDialog::showStylesheetDialog()
|
437 |
void UIPrefsDialog::showStylesheetDialog()
|
438 |
{
|
438 |
{
|
439 |
qssFile = myGetFileName(false, "Select stylesheet file", true);
|
439 |
qssFile = myGetFileName(false, "Select stylesheet file", true);
|
440 |
string nm = path_getsimple((const char *)qssFile.toLocal8Bit());
|
440 |
string nm = path_getsimple((const char *)qssFile.toLocal8Bit());
|
|
|
441 |
if (!nm.empty()) {
|
441 |
stylesheetPB->setText(QString::fromLocal8Bit(nm.c_str()));
|
442 |
stylesheetPB->setText(QString::fromLocal8Bit(nm.c_str()));
|
|
|
443 |
} else {
|
|
|
444 |
stylesheetPB->setText(tr("Choose"));
|
|
|
445 |
}
|
442 |
}
|
446 |
}
|
443 |
|
447 |
|
444 |
void UIPrefsDialog::resetStylesheet()
|
448 |
void UIPrefsDialog::resetStylesheet()
|
445 |
{
|
449 |
{
|
446 |
qssFile = "";
|
450 |
qssFile = "";
|