From ec933b1cb13a3cb2eb94975d933c5a56eae8b416 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 6 Nov 2011 20:15:08 +0200 Subject: Fix panel labels. Config format changes --- client/Dialog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client/Dialog.cpp') diff --git a/client/Dialog.cpp b/client/Dialog.cpp index 9703821..abd3178 100644 --- a/client/Dialog.cpp +++ b/client/Dialog.cpp @@ -7,7 +7,7 @@ #include "Dialog.h" #include "Proxy.h" - using namespace std; +using namespace std; ProxyDialog::ProxyDialog(QWidget *parent): QDialog(parent) { @@ -16,12 +16,12 @@ ProxyDialog::ProxyDialog(QWidget *parent): QDialog(parent) cfg->AcquireConfig(); if (! cfg->IsConfigValid()) { - Logger::Fatal((std::string)"No valid configuration found! Can't proceed."); + Logger::Fatal((string)"No valid configuration found! Can't proceed."); return ; } /* generic proxy panel */ - topLabel = new QLabel("Top Panel"); + topLabel = new QLabel(QString::fromLocal8Bit(cfg->TopPanelText.c_str())); topLabel->setAlignment(Qt::AlignHCenter); countryBox = new QComboBox; stateBox = new QComboBox; @@ -51,7 +51,7 @@ ProxyDialog::ProxyDialog(QWidget *parent): QDialog(parent) genericProxyGroup = new QButtonGroup; /* static proxy panel */ - bottomLabel = new QLabel("Bottom Panel"); + bottomLabel = new QLabel(QString::fromLocal8Bit(cfg->BottomPanelText.c_str())); bottomLabel->setAlignment(Qt::AlignHCenter); QGridLayout *bottomPanelLayout = new QGridLayout; unsigned nlines = cfg->GetStaticProxyGuiLines(); -- cgit v1.2.3