okular: adjust to Katie changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-20 00:21:06 +03:00
parent 59e9f30f30
commit e7e880cdea
2 changed files with 10 additions and 3 deletions

View file

@ -23,6 +23,7 @@
#include <kiconloader.h>
#include <klocale.h>
#include <knuminput.h>
#include <kdialog.h>
#include <kdebug.h>
#include "core/document.h"
@ -37,11 +38,14 @@ PixmapPreviewSelector::PixmapPreviewSelector( QWidget * parent )
mainlay->setMargin( 0 );
m_comboItems = new KComboBox( this );
mainlay->addWidget( m_comboItems );
m_iconLabel = new QLabel( this );
mainlay->addWidget( m_iconLabel );
m_iconBox = new KHBox( this );
m_iconBox->setFrameStyle( QFrame::StyledPanel );
m_iconLabel = new QLabel( m_iconBox );
m_iconLabel->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed );
m_iconLabel->setAlignment( Qt::AlignCenter );
m_iconLabel->setFrameStyle( QFrame::StyledPanel );
const int margin = KDialog::marginHint();
m_iconLabel->setContentsMargins(margin, 0, margin, 0);
mainlay->addWidget( m_iconBox );
setPreviewSize( 32 );
connect( m_comboItems, SIGNAL(currentIndexChanged(QString)), this, SLOT(iconComboChanged(QString)) );

View file

@ -19,6 +19,8 @@
#include <QDoubleSpinBox>
#include <QLabel>
#include <QWidget>
#include <khbox.h>
class KColorButton;
class KIntNumInput;
class KFontRequester;
@ -51,6 +53,7 @@ private slots:
private:
QString m_icon;
KHBox * m_iconBox;
QLabel * m_iconLabel;
QComboBox * m_comboItems;
int m_previewSize;