summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-07 20:19:22 +0100
committerSimon Rettberg2014-02-07 20:19:22 +0100
commitdfa14dc283562c416b251bcf3279ec4a6da8e541 (patch)
tree3d46ad02f0bde7a3dcf3ed4360adb64185aad381
parentFinally make it work as intended. (diff)
downloadprintergui-dfa14dc283562c416b251bcf3279ec4a6da8e541.tar.gz
printergui-dfa14dc283562c416b251bcf3279ec4a6da8e541.tar.xz
printergui-dfa14dc283562c416b251bcf3279ec4a6da8e541.zip
Hooray for UTF-8
-rw-r--r--src/maingui/printergui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/maingui/printergui.cpp b/src/maingui/printergui.cpp
index 5e2ba39..f3a0b85 100644
--- a/src/maingui/printergui.cpp
+++ b/src/maingui/printergui.cpp
@@ -72,9 +72,9 @@ void PrinterGui::initializeUI()
for (int i = num_dests; i>0; ++dest, --i )
if (dest->instance == NULL) {
QTreeWidgetItem *wi = new QTreeWidgetItem();
- wi->setText(0, QString(dest->name));
- wi->setText(1, QString(cupsGetOption("printer-info", dest->num_options, dest->options)));
- wi->setText(2, QString(cupsGetOption("printer-location", dest->num_options, dest->options)));
+ wi->setText(0, QString::fromUtf8(dest->name));
+ wi->setText(1, QString::fromUtf8(cupsGetOption("printer-info", dest->num_options, dest->options)));
+ wi->setText(2, QString::fromUtf8(cupsGetOption("printer-location", dest->num_options, dest->options)));
ui->printerList->addTopLevelItem(wi);
if (dest->is_default)
ui->printerList->setCurrentItem(wi);