mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
zeit: minor change, move QSL defines
This commit is contained in:
parent
beb57377fb
commit
6105c76817
@ -20,6 +20,8 @@
|
||||
#include "basedelegate.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
#define QSL QStringLiteral
|
||||
|
||||
|
||||
BaseDelegate::BaseDelegate(Ui::MainWindow* ui_) : ui(ui_)
|
||||
{
|
||||
|
||||
@ -29,7 +29,6 @@
|
||||
#define ROOT_ACTIONS false
|
||||
#endif // BUILD_HELPER
|
||||
|
||||
#define QSL QStringLiteral
|
||||
|
||||
namespace Ui {
|
||||
class MainWindow;
|
||||
|
||||
@ -43,7 +43,7 @@ void VariableDelegate::view() {
|
||||
item->setText(QString(QStringLiteral("%1%2=%3"))
|
||||
.arg(var->comment.isEmpty()
|
||||
? QString()
|
||||
: QString(QSL("## %1\n")).arg(var->comment),
|
||||
: QString(QStringLiteral("## %1\n")).arg(var->comment),
|
||||
var->variable, var->value));
|
||||
setIcon(item, var->enabled);
|
||||
ui->listWidget->addItem(item);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user