mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
the very slight gain in looks is not worth the porting cost
svn path=/trunk/playground/graphics/okular/; revision=559181
This commit is contained in:
parent
5262f0c13f
commit
3e620c0918
1 changed files with 0 additions and 8 deletions
|
@ -338,10 +338,6 @@ void ProgressWidget::paintEvent( QPaintEvent * e )
|
|||
PagesEdit::PagesEdit( MiniBar * parent )
|
||||
: QLineEdit( parent ), m_miniBar( parent ), m_eatClick( false )
|
||||
{
|
||||
// customize look
|
||||
#warning dont know how to port setFrameShadow
|
||||
// setFrameShadow( QFrame::Raised );
|
||||
|
||||
// use an integer validator
|
||||
m_validator = new QIntValidator( 1, 1, this );
|
||||
setValidator( m_validator );
|
||||
|
@ -376,8 +372,6 @@ void PagesEdit::focusInEvent( QFocusEvent * e )
|
|||
if ( e->reason() == Qt::MouseFocusReason )
|
||||
m_eatClick = true;
|
||||
// change background color to the default 'edit' color
|
||||
#warning dont know how to port setLineWidth
|
||||
// setLineWidth( 2 );
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Active, QPalette::Base, QApplication::palette().color( QPalette::Active, QPalette::Base ) );
|
||||
setPalette( pal );
|
||||
|
@ -388,8 +382,6 @@ void PagesEdit::focusInEvent( QFocusEvent * e )
|
|||
void PagesEdit::focusOutEvent( QFocusEvent * e )
|
||||
{
|
||||
// change background color to a dark tone
|
||||
#warning dont know how to port setLineWidth
|
||||
// setLineWidth( 1 );
|
||||
QPalette pal = palette();
|
||||
pal.setColor( QPalette::Base, QApplication::palette().color( QPalette::Base ).dark( 102 ) );
|
||||
setPalette( pal );
|
||||
|
|
Loading…
Reference in a new issue