mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
fix icons
svn path=/trunk/KDE/kdegraphics/okular/; revision=732755
This commit is contained in:
parent
9e5f8163f7
commit
0b35107505
|
@ -295,7 +295,7 @@ QVariant AnnotationModel::data( const QModelIndex &index, int role ) const
|
||||||
if ( role == Qt::DisplayRole )
|
if ( role == Qt::DisplayRole )
|
||||||
return i18n( "Page %1", item->page + 1 );
|
return i18n( "Page %1", item->page + 1 );
|
||||||
else if ( role == Qt::DecorationRole )
|
else if ( role == Qt::DecorationRole )
|
||||||
return KIcon( "txt" );
|
return KIcon( "text-plain" );
|
||||||
else if ( role == PageRole )
|
else if ( role == PageRole )
|
||||||
return item->page;
|
return item->page;
|
||||||
|
|
||||||
|
|
|
@ -438,7 +438,7 @@ QVariant AuthorGroupProxyModel::data( const QModelIndex &proxyIndex, int role )
|
||||||
if ( role == Qt::DisplayRole )
|
if ( role == Qt::DisplayRole )
|
||||||
return item->author();
|
return item->author();
|
||||||
else if ( role == Qt::DecorationRole )
|
else if ( role == Qt::DecorationRole )
|
||||||
return KIcon( item->author().isEmpty() ? "precense_away" : "personal" );
|
return KIcon( item->author().isEmpty() ? "precense_away" : "user" );
|
||||||
else
|
else
|
||||||
return QVariant();
|
return QVariant();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -119,7 +119,7 @@ Reviews::Reviews( QWidget * parent, Okular::Document * document )
|
||||||
toolBar->setIconSize( QSize( 16, 16 ) );
|
toolBar->setIconSize( QSize( 16, 16 ) );
|
||||||
toolBar->setMovable( false );
|
toolBar->setMovable( false );
|
||||||
// - add Page button
|
// - add Page button
|
||||||
QAction * groupByPageAction = toolBar->addAction( KIcon( "txt" ), i18n( "Group by Page" ) );
|
QAction * groupByPageAction = toolBar->addAction( KIcon( "text-plain" ), i18n( "Group by Page" ) );
|
||||||
groupByPageAction->setCheckable( true );
|
groupByPageAction->setCheckable( true );
|
||||||
connect( groupByPageAction, SIGNAL( toggled( bool ) ), this, SLOT( slotPageEnabled( bool ) ) );
|
connect( groupByPageAction, SIGNAL( toggled( bool ) ), this, SLOT( slotPageEnabled( bool ) ) );
|
||||||
groupByPageAction->setChecked( Okular::Settings::groupByPage() );
|
groupByPageAction->setChecked( Okular::Settings::groupByPage() );
|
||||||
|
|
Loading…
Reference in a new issue