mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-28 19:28:38 +00:00
Make the text of the values in the Properties dialog selectable using mouse.
BUG: 150293 svn path=/trunk/KDE/kdegraphics/okular/; revision=723800
This commit is contained in:
parent
4060ef669e
commit
36e6e85b46
1 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, Okular::Document *doc)
|
|||
// create labels and layout them
|
||||
QLabel *key = new QLabel( i18n( "%1:", titleString ), page );
|
||||
QLabel *value = new KSqueezedTextLabel( valueString, page );
|
||||
value->setTextInteractionFlags( Qt::TextSelectableByMouse );
|
||||
layout->addWidget( key, row, 0, Qt::AlignRight );
|
||||
layout->addWidget( value, row, 1 );
|
||||
row++;
|
||||
|
@ -82,6 +83,7 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, Okular::Document *doc)
|
|||
if ( list.count() == 0 ) {
|
||||
QLabel *key = new QLabel( i18n( "Pages:" ), page );
|
||||
QLabel *value = new QLabel( QString::number( doc->pages() ), page );
|
||||
value->setTextInteractionFlags( Qt::TextSelectableByMouse );
|
||||
|
||||
layout->addWidget( key, row, 0, Qt::AlignRight );
|
||||
layout->addWidget( value, row, 1 );
|
||||
|
|
Loading…
Reference in a new issue