Changeset 10384
- Timestamp:
- Mar 15, 2010, 2:42:56 PM (12 years ago)
- Location:
- trunk/qt
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/mainwin.cc
r9890 r10384 137 137 connect( ui.action_Filterbar, SIGNAL(toggled(bool)), this, SLOT(setFilterbarVisible(bool))); 138 138 connect( ui.action_Statusbar, SIGNAL(toggled(bool)), this, SLOT(setStatusbarVisible(bool))); 139 connect( ui.action_ MinimalView, SIGNAL(toggled(bool)), this, SLOT(setMinimalView(bool)));139 connect( ui.action_CompactView, SIGNAL(toggled(bool)), this, SLOT(setCompactView(bool))); 140 140 connect( ui.action_SortByActivity, SIGNAL(toggled(bool)), this, SLOT(onSortByActivityToggled(bool))); 141 141 connect( ui.action_SortByAge, SIGNAL(toggled(bool)), this, SLOT(onSortByAgeToggled(bool))); … … 260 260 << Prefs :: TOOLBAR 261 261 << Prefs :: ALT_SPEED_LIMIT_ENABLED 262 << Prefs :: MINIMAL_VIEW262 << Prefs :: COMPACT_VIEW 263 263 << Prefs :: DSPEED 264 264 << Prefs :: DSPEED_ENABLED … … 887 887 888 888 void 889 TrMainWindow :: set MinimalView( bool visible )890 { 891 myPrefs.set( Prefs :: MINIMAL_VIEW, visible );889 TrMainWindow :: setCompactView( bool visible ) 890 { 891 myPrefs.set( Prefs :: COMPACT_VIEW, visible ); 892 892 } 893 893 void … … 1039 1039 break; 1040 1040 1041 case Prefs:: MINIMAL_VIEW:1041 case Prefs::COMPACT_VIEW: 1042 1042 b = myPrefs.getBool( key ); 1043 ui.action_ MinimalView->setChecked( b );1043 ui.action_CompactView->setChecked( b ); 1044 1044 ui.listView->setItemDelegate( b ? myTorrentDelegateMin : myTorrentDelegate ); 1045 1045 ui.listView->reset( ); // force the rows to resize -
trunk/qt/mainwin.h
r9868 r10384 185 185 void setStatusbarVisible( bool ); 186 186 void setTrayIconVisible( bool ); 187 void set MinimalView( bool );187 void setCompactView( bool ); 188 188 void refreshActionSensitivity( ); 189 189 void wrongAuthentication( ); -
trunk/qt/mainwin.ui
r9663 r10384 52 52 <y>0</y> 53 53 <width>792</width> 54 <height>2 5</height>54 <height>23</height> 55 55 </rect> 56 56 </property> … … 104 104 <string>&View</string> 105 105 </property> 106 <addaction name="action_ MinimalView"/>106 <addaction name="action_CompactView"/> 107 107 <addaction name="separator"/> 108 108 <addaction name="action_Toolbar"/> … … 320 320 </property> 321 321 </action> 322 <action name="action_MinimalView"> 323 <property name="checkable"> 324 <bool>true</bool> 325 </property> 326 <property name="text"> 327 <string>&Minimal View</string> 322 <action name="action_CompactView"> 323 <property name="checkable"> 324 <bool>true</bool> 325 </property> 326 <property name="text"> 327 <string>&Compact View</string> 328 </property> 329 <property name="iconText"> 330 <string>Compact View</string> 331 </property> 332 <property name="toolTip"> 333 <string>Compact View</string> 328 334 </property> 329 335 <property name="shortcut"> -
trunk/qt/prefs.cc
r10065 r10384 44 44 { SORT_MODE, "sort-mode", TrTypes::SortModeType }, 45 45 { SORT_REVERSED, "sort-reversed", QVariant::Bool }, 46 { MINIMAL_VIEW, "minimal-view", QVariant::Bool },46 { COMPACT_VIEW, "compact-view", QVariant::Bool }, 47 47 { FILTERBAR, "show-filterbar", QVariant::Bool }, 48 48 { STATUSBAR, "show-statusbar", QVariant::Bool }, … … 257 257 tr_bencDictAddStr( d, keyStr(SORT_MODE), "sort-by-name" ); 258 258 tr_bencDictAddInt( d, keyStr(SORT_REVERSED), false ); 259 tr_bencDictAddInt( d, keyStr( MINIMAL_VIEW), false );259 tr_bencDictAddInt( d, keyStr(COMPACT_VIEW), false ); 260 260 tr_bencDictAddInt( d, keyStr(START), true ); 261 261 tr_bencDictAddInt( d, keyStr(TRASH_ORIGINAL), false ); -
trunk/qt/prefs.h
r10065 r10384 47 47 SORT_MODE, 48 48 SORT_REVERSED, 49 MINIMAL_VIEW,49 COMPACT_VIEW, 50 50 FILTERBAR, 51 51 STATUSBAR,
Note: See TracChangeset
for help on using the changeset viewer.