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:
Pino Toscano 2007-10-10 18:41:10 +00:00
parent 4060ef669e
commit 36e6e85b46

View file

@ -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 );