Changeset 11043
- Timestamp:
- Jul 24, 2010, 2:43:06 AM (12 years ago)
- Location:
- trunk/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/formatter.cc
r10986 r11043 30 30 } 31 31 32 QString Formatter::unitStrings[3][ 4];32 QString Formatter::unitStrings[3][5]; 33 33 34 34 void -
trunk/qt/formatter.h
r10957 r11043 47 47 private: 48 48 49 static QString unitStrings[3][ 4];49 static QString unitStrings[3][5]; 50 50 }; 51 51 -
trunk/qt/torrent-delegate-min.cc
r10931 r11043 31 31 { 32 32 GUI_PAD = 6, 33 BAR_WIDTH = 50, 33 34 BAR_HEIGHT = 12, 34 35 LINE_SPACING = 4 … … 38 39 **** 39 40 **** +---------+-----------------------------------------------+ 40 **** | Icon | Title shortStatusString | 41 **** | Icon | [ Progressbar.......................... ] | 41 **** | Icon | Title shortStatusString [Progressbar] | 42 42 **** +-------- +-----------------------------------------------+ 43 43 **** … … 64 64 const QSize m( margin( *style ) ); 65 65 66 return QSize( m.width() + iconSize + GUI_PAD + nameSize.width() + GUI_PAD + statusSize.width() + m.width(), 67 m.height() + nameSize.height() + LINE_SPACING + BAR_HEIGHT + m.height() ); 66 return QSize( m.width()*2 + iconSize + GUI_PAD + nameSize.width() 67 + GUI_PAD + statusSize.width() 68 + GUI_PAD + BAR_WIDTH, 69 m.height()*2 + std::max( nameSize.height(), (int)BAR_HEIGHT ) ); 68 70 } 69 71 … … 127 129 iconSize, 128 130 iconSize ); 129 const QRect statusArea( fillArea.width( ) - statusSize.width( ), 130 fillArea.top( ) + ((nameSize.height()-statusSize.height())/2), 131 statusSize.width( ), 132 statusSize.height( ) ); 131 const QRect barArea( fillArea.x( ) + fillArea.width( ) - BAR_WIDTH, 132 fillArea.y( ) + ( fillArea.height( ) - BAR_HEIGHT ) / 2, 133 BAR_WIDTH, 134 BAR_HEIGHT ); 135 const QRect statusArea( barArea.x( ) - GUI_PAD - statusSize.width( ), 136 fillArea.y( ), 137 fillArea.width( ), 138 fillArea.height( ) ); 133 139 const QRect nameArea( iconArea.x( ) + iconArea.width( ) + GUI_PAD, 134 140 fillArea.y( ), 135 fillArea.width( ) - statusArea.width( ) - (GUI_PAD*2) - iconArea.width( ), 136 nameSize.height( ) ); 137 const QRect barArea( nameArea.left( ), 138 nameArea.bottom( ), 139 statusArea.right( ) - nameArea.left( ), 140 BAR_HEIGHT ); 141 statusArea.x( ) - ( iconArea.x( ) + iconArea.width( ) + GUI_PAD * 2 ), 142 fillArea.height( ) ); 141 143 142 144 // render
Note: See TracChangeset
for help on using the changeset viewer.