Lines Matching refs:combo
41 standardMountPoints( QComboBox& combo ) in standardMountPoints() argument
43 combo.clear(); in standardMountPoints()
44 combo.addItem( QObject::tr( "(no mount point)" ) ); in standardMountPoints()
45 combo.addItems( standardMountPoints() ); in standardMountPoints()
49 standardMountPoints( QComboBox& combo, const QString& selected ) in standardMountPoints() argument
51 standardMountPoints( combo ); in standardMountPoints()
52 setSelectedMountPoint( combo, selected ); in standardMountPoints()
56 selectedMountPoint( QComboBox& combo ) in selectedMountPoint() argument
58 if ( combo.currentIndex() == 0 ) in selectedMountPoint()
62 return combo.currentText(); in selectedMountPoint()
66 setSelectedMountPoint( QComboBox& combo, const QString& selected ) in setSelectedMountPoint() argument
70 combo.setCurrentIndex( 0 ); // (no mount point) in setSelectedMountPoint()
74 for ( int i = 0; i < combo.count(); ++i ) in setSelectedMountPoint()
76 if ( selected == combo.itemText( i ) ) in setSelectedMountPoint()
78 combo.setCurrentIndex( i ); in setSelectedMountPoint()
82 combo.addItem( selected ); in setSelectedMountPoint()
83 combo.setCurrentIndex( combo.count() - 1 ); in setSelectedMountPoint()