mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
assign shortcuts and icons to the tabs
svn path=/trunk/playground/graphics/okular/; revision=563360
This commit is contained in:
parent
aafa09c535
commit
14b1e51907
1 changed files with 5 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <qheaderview.h>
|
||||
#include <qsortfilterproxymodel.h>
|
||||
#include <qtreeview.h>
|
||||
#include <kicon.h>
|
||||
#include <klocale.h>
|
||||
#include <ksqueezedtextlabel.h>
|
||||
#include <kglobalsettings.h>
|
||||
|
@ -30,7 +31,8 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, KPDFDocument *doc)
|
|||
|
||||
// PROPERTIES
|
||||
QFrame *page = new QFrame();
|
||||
addPage( page, i18n( "Properties" ) );
|
||||
KPageWidgetItem *item = addPage( page, i18n( "&Properties" ) );
|
||||
item->setIcon( KIcon( "info" ) );
|
||||
QGridLayout *layout = new QGridLayout( page );
|
||||
layout->setMargin( marginHint() );
|
||||
layout->setSpacing( spacingHint() );
|
||||
|
@ -85,7 +87,8 @@ PropertiesDialog::PropertiesDialog(QWidget *parent, KPDFDocument *doc)
|
|||
if ( fonts ) {
|
||||
// create fonts tab and layout it
|
||||
QFrame *page2 = new QFrame();
|
||||
addPage(page2, i18n("Fonts"));
|
||||
KPageWidgetItem *item2 = addPage(page2, i18n("&Fonts"));
|
||||
item2->setIcon( KIcon( "fonts" ) );
|
||||
page2Layout = new QVBoxLayout(page2);
|
||||
page2Layout->setMargin(marginHint());
|
||||
page2Layout->setSpacing(spacingHint());
|
||||
|
|
Loading…
Reference in a new issue