[Kget] [Bug 102421] I can't see well the status bar fields because the words space in some languajes
Urs Wolfer
u.wolfer at bluewin.ch
Tue Jul 26 21:23:47 CEST 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=102421
u.wolfer bluewin ch changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From u.wolfer bluewin ch 2005-07-26 21:23 -------
SVN commit 438991 by uwolfer:
Size of statusbar fields (time, speed, ...) are updated now after each change. So the text cannot be cut off.
BUG: 102421
M +7 -1 kmainwidget.cpp
--- trunk/KDE/kdenetwork/kget/kmainwidget.cpp #438990:438991
@ -401,7 +401,7 @
statusBar()->insertFixedItem(i18n(" Transfers: %1 ").arg(99), ID_TOTAL_TRANSFERS);
statusBar()->insertFixedItem(i18n(" Files: %1 ").arg(555), ID_TOTAL_FILES);
statusBar()->insertFixedItem(i18n(" Size: %1 KB ").arg("134.56"), ID_TOTAL_SIZE);
- statusBar()->insertFixedItem(i18n(" Time: %1 ").arg(KIO::convertSeconds(0)) + " ", ID_TOTAL_TIME); //added some spaces because "2 days 12:12:12" need more place as "12:12:12"
+ statusBar()->insertFixedItem(i18n(" Time: %1 ").arg(KIO::convertSeconds(0)), ID_TOTAL_TIME);
statusBar()->insertFixedItem(i18n(" %1 KB/s ").arg("123.34"), ID_TOTAL_SPEED);
setAutoSaveSettings( "MainWindow", false /*Settings takes care of size & pos & state */ );
@ -2103,6 +2103,12 @
statusBar()->changeItem(i18n(" Size: %1 ").arg(KIO::convertSize(totalSize)), ID_TOTAL_SIZE);
statusBar()->changeItem(i18n(" Time: %1 ").arg(KIO::convertSeconds(remTime)), ID_TOTAL_TIME);
statusBar()->changeItem(i18n(" %1/s ").arg(KIO::convertSize(totalSpeed)), ID_TOTAL_SPEED);
+ //update size for each statusbar field
+ statusBar()->setItemFixed(ID_TOTAL_TRANSFERS, -1);
+ statusBar()->setItemFixed(ID_TOTAL_FILES, -1);
+ statusBar()->setItemFixed(ID_TOTAL_SIZE, -1);
+ statusBar()->setItemFixed(ID_TOTAL_TIME, -1);
+ statusBar()->setItemFixed(ID_TOTAL_SPEED, -1);
if (kdock) {
tmpstr = i18n("<b>Transfers:</b> %1 ").arg(myTransferList->childCount()) +
More information about the Kget
mailing list