diff --git a/ui/annotationpropertiesdialog.cpp b/ui/annotationpropertiesdialog.cpp index 67ce4f022..e8cf87c41 100644 --- a/ui/annotationpropertiesdialog.cpp +++ b/ui/annotationpropertiesdialog.cpp @@ -13,11 +13,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include @@ -95,7 +95,7 @@ AnnotsPropertiesDialog::AnnotsPropertiesDialog( QWidget *parent, Okular::Documen gridlayout = new QGridLayout( page ); tmplabel = new QLabel( i18n( "&Author:" ), page ); tmplabel->setAlignment( ( tmplabel->alignment() & ~Qt::AlignHorizontal_Mask ) | Qt::AlignRight ); - AuthorEdit = new QLineEdit( ann->author(), page ); + AuthorEdit = new KLineEdit( ann->author(), page ); AuthorEdit->setEnabled( canEditAnnotations ); tmplabel->setBuddy( AuthorEdit ); gridlayout->addWidget( tmplabel, 0, 0 ); diff --git a/ui/annotationwidgets.cpp b/ui/annotationwidgets.cpp index 0476130e3..7c3a991ee 100644 --- a/ui/annotationwidgets.cpp +++ b/ui/annotationwidgets.cpp @@ -11,13 +11,13 @@ // qt/kde includes #include -#include #include #include #include #include #include #include +#include #include #include #include @@ -30,7 +30,7 @@ PixmapPreviewSelector::PixmapPreviewSelector( QWidget * parent ) { QHBoxLayout * mainlay = new QHBoxLayout( this ); mainlay->setMargin( 0 ); - m_comboItems = new QComboBox( this ); + m_comboItems = new KComboBox( this ); mainlay->addWidget( m_comboItems ); m_iconLabel = new QLabel( this ); mainlay->addWidget( m_iconLabel ); @@ -372,7 +372,7 @@ QWidget * HighlightAnnotationWidget::widget() lay->addLayout( typelay ); QLabel * tmplabel = new QLabel( i18n( "Type:" ), m_widget ); typelay->addWidget( tmplabel ); - m_typeCombo = new QComboBox( m_widget ); + m_typeCombo = new KComboBox( m_widget ); tmplabel->setBuddy( m_typeCombo ); typelay->addWidget( m_typeCombo ); @@ -410,7 +410,7 @@ QWidget * GeomAnnotationWidget::widget() lay->setMargin( 0 ); QLabel * tmplabel = new QLabel( i18n( "Type:" ), m_widget ); lay->addWidget( tmplabel, 0, 0 ); - m_typeCombo = new QComboBox( m_widget ); + m_typeCombo = new KComboBox( m_widget ); tmplabel->setBuddy( m_typeCombo ); lay->addWidget( m_typeCombo, 0, 1 ); m_useColor = new QCheckBox( i18n( "Inner color:" ), m_widget ); diff --git a/ui/annotwindow.cpp b/ui/annotwindow.cpp index d310e9e99..1921e58b6 100644 --- a/ui/annotwindow.cpp +++ b/ui/annotwindow.cpp @@ -23,10 +23,10 @@ #include #include #include -#include #include #include #include +#include #include // local includes @@ -163,7 +163,7 @@ AnnotWindow::AnnotWindow( QWidget * parent, Okular::Annotation * annot) setAutoFillBackground( true ); setFrameStyle( Panel | Raised ); - textEdit=new QTextEdit(m_annot->window().text(), this); + textEdit=new KTextEdit(m_annot->window().text(), this); connect(textEdit,SIGNAL(textChanged()), this,SLOT(slotsaveWindowText())); diff --git a/ui/minibar.cpp b/ui/minibar.cpp index c65d480be..13c155ec0 100644 --- a/ui/minibar.cpp +++ b/ui/minibar.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -24,6 +23,7 @@ #include #include #include +#include #include #include @@ -31,7 +31,7 @@ #include "core/document.h" // [private widget] lineEdit for entering/validating page numbers -class PagesEdit : public QLineEdit +class PagesEdit : public KLineEdit { public: PagesEdit( MiniBar * parent ); @@ -326,7 +326,7 @@ void ProgressWidget::paintEvent( QPaintEvent * e ) /** PagesEdit **/ PagesEdit::PagesEdit( MiniBar * parent ) - : QLineEdit( parent ), m_miniBar( parent ), m_eatClick( false ) + : KLineEdit( parent ), m_miniBar( parent ), m_eatClick( false ) { // use an integer validator m_validator = new QIntValidator( 1, 1, this ); @@ -352,7 +352,7 @@ void PagesEdit::setText( const QString & text ) backString = text; // call default handler if hasn't focus if ( !hasFocus() ) - QLineEdit::setText( text ); + KLineEdit::setText( text ); } void PagesEdit::focusInEvent( QFocusEvent * e ) @@ -366,7 +366,7 @@ void PagesEdit::focusInEvent( QFocusEvent * e ) pal.setColor( QPalette::Active, QPalette::Base, QApplication::palette().color( QPalette::Active, QPalette::Base ) ); setPalette( pal ); // call default handler - QLineEdit::focusInEvent( e ); + KLineEdit::focusInEvent( e ); } void PagesEdit::focusOutEvent( QFocusEvent * e ) @@ -376,16 +376,16 @@ void PagesEdit::focusOutEvent( QFocusEvent * e ) pal.setColor( QPalette::Base, QApplication::palette().color( QPalette::Base ).dark( 102 ) ); setPalette( pal ); // restore text - QLineEdit::setText( backString ); + KLineEdit::setText( backString ); // call default handler - QLineEdit::focusOutEvent( e ); + KLineEdit::focusOutEvent( e ); } void PagesEdit::mousePressEvent( QMouseEvent * e ) { // if this click got the focus in, don't process the event if ( !m_eatClick ) - QLineEdit::mousePressEvent( e ); + KLineEdit::mousePressEvent( e ); m_eatClick = false; } diff --git a/ui/presentationwidget.cpp b/ui/presentationwidget.cpp index 4cbd8c2cf..d47906199 100644 --- a/ui/presentationwidget.cpp +++ b/ui/presentationwidget.cpp @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -28,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -430,7 +430,7 @@ void PresentationWidget::paintEvent( QPaintEvent * pe ) m_topBar->setIconSize( QSize( 32, 32 ) ); m_topBar->setMovable( false ); m_topBar->addAction( KIcon( layoutDirection() == Qt::RightToLeft ? "go-next" : "go-previous" ), i18n("Previous Page"), this, SLOT( slotPrevPage() ) ); - m_pagesEdit = new QLineEdit( m_topBar ); + m_pagesEdit = new KLineEdit( m_topBar ); QSizePolicy sp = m_pagesEdit->sizePolicy(); sp.setHorizontalPolicy( QSizePolicy::Minimum ); m_pagesEdit->setSizePolicy( sp );