Commit graph

24 commits

Author SHA1 Message Date
Yuri Chornoivan
39b6e8147d Fix minor EBN issues 2018-09-01 11:25:57 +03:00
Ahmad Osama
5e622484c8 Fix problem of saving pdf switches from thumbnail view in sidebar to contents view
Summary:
When save/save as functions are called they internally call the openFile() function, in the open file function the side bar item is set to Table of Contents (ToC) item

```
if ( m_document->metaData( QStringLiteral("OpenTOC") ).toBool() && m_sidebar->isItemEnabled( m_toc ) && !m_sidebar->isCollapsed() && m_sidebar->currentItem() != m_toc )
{
     m_sidebar->setCurrentItem( m_toc, Sidebar::DoNotUncollapseIfCollapsed );
}
```
so I just store the sidebar's item before saving and then set this item back if changed.

BUG: 389668

Reviewers: #okular

Subscribers: aacid, okular-devel

Tags: #okular

Differential Revision: https://phabricator.kde.org/D14740
2018-08-13 11:13:00 +02:00
Albert Astals Cid
191a37fb52 Q_DECL_OVERRIDE -> override 2017-03-02 20:39:24 +01:00
Albert Astals Cid
b50aff3ed7 Q_NULLPTR -> nullptr 2017-03-02 20:09:32 +01:00
Martin T. H. Sandsmark
ad8b35a690 Fix updating of palette in sidebar 2016-07-24 16:59:34 +02:00
Martin T. H. Sandsmark
439ced872d Port away from signal/slot keyword
When building okular without kdelibs4support it apparently builds with
-DQT_NO_SIGNALS_SLOTS_KEYWORDS.
2016-07-11 19:34:08 +02:00
Albert Astals Cid
8445660539 Merge remote-tracking branch 'origin/master' into frameworks 2015-10-18 22:29:00 +02:00
Albert Astals Cid
ce7f81fc06 Make the sidebar work on widget pointers and not ints
This way we don't need to worry if we add more widgets in the middle
2015-09-16 01:18:17 +02:00
Albert Astals Cid
1cd101b480 Small cleanup of the layer support feature
Tab replacing, function naming, include removal, @since addition, etc
2015-09-15 01:38:09 +02:00
Montel Laurent
6fab218de9 Use Q_NULLPTR 2015-08-18 15:12:07 +02:00
Montel Laurent
a8c13a9e1d Add Q_DECL_OVERRIDE 2015-08-04 15:07:22 +02:00
Saheb Preet Singh
854f047d47 hide layers from the sidebar when layers are not present in the document 2015-07-12 17:36:18 +05:30
Montel Laurent
d780d15ea9 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	autotests/mainshelltest.cpp
	part.cpp
	part.h
	shell/shell.cpp
2015-03-17 08:47:52 +01:00
Saheb Preet Singh
1eafe4feb1 New shortcut to resize window to fit page
FIXED-IN: KDE Applications 15.08
BUGS: 326844
REVIEW: 115283
2015-03-17 00:20:11 +01:00
Montel Laurent
3b4ee788b8 Fix includes 2014-10-08 13:37:04 +02:00
Vishesh Handa
46cf7e46a5 Port away from KUrl::List 2014-08-13 13:07:44 +02:00
Jonathan Doman
89fd56c23b Launch documents from external sources in new tabs
FIXED-IN: 4.13.0
BUGS: 331872
BUGS: 332238
REVIEW: 116700
2014-04-09 23:29:58 +02:00
Albert Astals Cid
db53b2f359 Do not show the sidebar if it was hidden when defaulting to show the toc
BUGS: 327641
FIXED-IN: 4.11.95
2013-11-21 00:03:02 +01:00
Eike Hein
db1eb41171 Move KColorScheme instanciation out of the paint path.
REVIEW:108958
2013-02-19 11:52:11 +01:00
Elvis Stansvik
d066fb0004 Remember collapse state of sidebar when file is auto-reloaded
BUGS: 289010
REVIEW: 103517
2011-12-28 00:49:44 +01:00
Pino Toscano
d51d279afb Make it possible to choose the size for the icons in the sidebar, by choosing it in the popup menu of the sidebar itself.
CCBUG: 151205

svn path=/trunk/KDE/kdegraphics/okular/; revision=731824
2007-11-01 22:58:09 +00:00
Pino Toscano
1cd4ae0a3e When reloading, properly remember the state of the sidebar.
CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731721
2007-11-01 17:52:47 +00:00
Pino Toscano
5a069b0543 Make the sidebar able to show the text for the items;
it can be shown/hidden using the popup menu of the sidebat itself.

TODO: save the state across runs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=702635
2007-08-20 23:09:37 +00:00
Pino Toscano
17ad0df66c New sidebar for okular.
The old sidebar had many problems and limitations, usability issues as well.
This new sidebar tries to simplify and solve many of these issues (like the navigability with the keyboard), with a better looking.
Of course, some glitches are still there, but easily solvable.

svn path=/trunk/KDE/kdegraphics/okular/; revision=697060
2007-08-06 17:24:10 +00:00