From defe8efa266b3e9b70827220edb6d84fc95bb14b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Sat, 14 Mar 2015 07:47:23 -0400 Subject: Truncate the timezone country names to 20 characters. (more than enough to see what the country is) --- lumina-config/mainUI.cpp | 6 ++++-- lumina-config/mainUI.ui | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'lumina-config') diff --git a/lumina-config/mainUI.cpp b/lumina-config/mainUI.cpp index e5b277a9..ba254d9f 100644 --- a/lumina-config/mainUI.cpp +++ b/lumina-config/mainUI.cpp @@ -279,11 +279,13 @@ void MainUI::setupMenus(){ ui->combo_session_timezone->clear(); QList TZList = QTimeZone::availableTimeZoneIds(); QDateTime DT = QDateTime::currentDateTime(); - QStringList tzlist; + QStringList tzlist; //Need to create a list which can be sorted appropriately for(int i=0; i 20){ name = name.left(20)+"..."; } + name = QString(tr("%1 (%2)")).arg(name, TZ.abbreviation(DT)); if(tzlist.filter(name).isEmpty()){ tzlist << name+"::::"+QString::number(i); } diff --git a/lumina-config/mainUI.ui b/lumina-config/mainUI.ui index 92ebf47d..07abacab 100644 --- a/lumina-config/mainUI.ui +++ b/lumina-config/mainUI.ui @@ -1649,6 +1649,9 @@ 0 + + QComboBox::AdjustToMinimumContentsLength + -- cgit