D15580: [WIP] New annotation toolbar
Simone Gaiarin
noreply at phabricator.kde.org
Sun Oct 27 08:28:15 GMT 2019
simgunz added inline comments.
INLINE COMMENTS
> davidhurka wrote in shell.cpp:370
> >> @simgunz just wrote:
> >
> > https://phabricator.kde.org/D15580#544534
>
> That’s what I thought about. :)
Initially I put that action in `part.rc`, while now I moved it to `shell.rc`. This makes more sense given that the toolbar belongs to the main window somehow owns the toolbars and I create this action in `Shell::setupActions()` that makes more sense. The problem is that `setupActions` is called before `setupGUI` and `createGUI` so the toolbar does not exist yet. To solve this I have to call `toolBar( "mainToolBar" );` to force the creation of the toolbar and so be able to "bind" the KToggleToolBarAction to an existing toolbar.
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D15580
To: simgunz, #okular, #vdg
Cc: trickyricky26, simgunz, ltoscano, cfeck, aacid, davidhurka, knambiar, ngraham, tobiasdeiminger, okular-devel, johnzh, andisa, siddharthmanthan, maguirre, fbampaloukas, joaonetto, kezik, tfella, darcyshen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20191027/a4e7c497/attachment.html>
More information about the Okular-devel
mailing list