author | sandman <sandman> | 2002-10-23 21:43:28 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-23 21:43:28 (UTC) |
commit | 4beb812466bd2be3946664d566cd9d9bb73d7894 (patch) (unidiff) | |
tree | 47e2697daabc8e34e19327c4512b23c8d7b70172 | |
parent | 7f2dc6af10c299075387336f5b115625294151b2 (diff) | |
download | opie-4beb812466bd2be3946664d566cd9d9bb73d7894.zip opie-4beb812466bd2be3946664d566cd9d9bb73d7894.tar.gz opie-4beb812466bd2be3946664d566cd9d9bb73d7894.tar.bz2 |
- made the gamma LCD look a bit nicer and more readable
- the gamma slider can now be controlled with the arrow keys
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidgetgui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp index 49356d3..5d9fb5d 100644 --- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp +++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp | |||
@@ -97,29 +97,31 @@ PlayListWidgetGui::PlayListWidgetGui( QWidget* parent, const char* name, WFlags | |||
97 | 97 | ||
98 | skinsMenu = new QPopupMenu( this ); | 98 | skinsMenu = new QPopupMenu( this ); |
99 | pmView->insertItem( tr( "Skins" ), skinsMenu ); | 99 | pmView->insertItem( tr( "Skins" ), skinsMenu ); |
100 | skinsMenu->isCheckable(); | 100 | skinsMenu->isCheckable(); |
101 | 101 | ||
102 | gammaMenu = new QPopupMenu( this ); | 102 | gammaMenu = new QPopupMenu( this ); |
103 | pmView->insertItem( tr( "Gamma (Video)" ), gammaMenu ); | 103 | pmView->insertItem( tr( "Gamma (Video)" ), gammaMenu ); |
104 | 104 | ||
105 | gammaSlider = new QSlider( QSlider::Vertical, gammaMenu ); | 105 | gammaSlider = new QSlider( QSlider::Vertical, gammaMenu ); |
106 | gammaSlider->setRange( -40, 40 ); | 106 | gammaSlider->setRange( -40, 40 ); |
107 | gammaSlider->setTickmarks( QSlider::Left ); | 107 | gammaSlider->setTickmarks( QSlider::Left ); |
108 | gammaSlider->setTickInterval( 20 ); | 108 | gammaSlider->setTickInterval( 20 ); |
109 | //gammaSlider->setFocusPolicy( QWidget::NoFocus ); | 109 | gammaSlider->setFocusPolicy( QWidget::StrongFocus ); |
110 | gammaSlider->setValue( 0 ); | 110 | gammaSlider->setValue( 0 ); |
111 | gammaSlider->setMinimumHeight( 50 ); | 111 | gammaSlider->setMinimumHeight( 50 ); |
112 | 112 | ||
113 | gammaLCD = new QLCDNumber( 3, gammaMenu ); | 113 | gammaLCD = new QLCDNumber( 3, gammaMenu ); |
114 | gammaLCD-> setFrameShape ( QFrame::NoFrame ); | ||
115 | gammaLCD-> setSegmentStyle ( QLCDNumber::Flat ); | ||
114 | 116 | ||
115 | gammaMenu->insertItem( gammaSlider ); | 117 | gammaMenu->insertItem( gammaSlider ); |
116 | gammaMenu->insertItem( gammaLCD ); | 118 | gammaMenu->insertItem( gammaLCD ); |
117 | 119 | ||
118 | connect( gammaSlider, SIGNAL( valueChanged( int ) ), gammaLCD, SLOT( display( int ) ) ); | 120 | connect( gammaSlider, SIGNAL( valueChanged( int ) ), gammaLCD, SLOT( display( int ) ) ); |
119 | 121 | ||
120 | vbox5 = new QVBox( this ); | 122 | vbox5 = new QVBox( this ); |
121 | QVBox *vbox4 = new QVBox( vbox5 ); | 123 | QVBox *vbox4 = new QVBox( vbox5 ); |
122 | QHBox *hbox6 = new QHBox( vbox4 ); | 124 | QHBox *hbox6 = new QHBox( vbox4 ); |
123 | 125 | ||
124 | tabWidget = new QTabWidget( hbox6, "tabWidget" ); | 126 | tabWidget = new QTabWidget( hbox6, "tabWidget" ); |
125 | 127 | ||