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 )
|
||||
return i18n( "Page %1", item->page + 1 );
|
||||
else if ( role == Qt::DecorationRole )
|
||||
return KIcon( "txt" );
|
||||
return KIcon( "text-plain" );
|
||||
else if ( role == PageRole )
|
||||
return item->page;
|
||||
|
||||
|
|
|
@ -438,7 +438,7 @@ QVariant AuthorGroupProxyModel::data( const QModelIndex &proxyIndex, int role )
|
|||
if ( role == Qt::DisplayRole )
|
||||
return item->author();
|
||||
else if ( role == Qt::DecorationRole )
|
||||
return KIcon( item->author().isEmpty() ? "precense_away" : "personal" );
|
||||
return KIcon( item->author().isEmpty() ? "precense_away" : "user" );
|
||||
else
|
||||
return QVariant();
|
||||
} else {
|
||||
|
|
|
@ -119,7 +119,7 @@ Reviews::Reviews( QWidget * parent, Okular::Document * document )
|
|||
toolBar->setIconSize( QSize( 16, 16 ) );
|
||||
toolBar->setMovable( false );
|
||||
// - 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 );
|
||||
connect( groupByPageAction, SIGNAL( toggled( bool ) ), this, SLOT( slotPageEnabled( bool ) ) );
|
||||
groupByPageAction->setChecked( Okular::Settings::groupByPage() );
|
||||
|
|
Loading…
Reference in a new issue