~ubuntu-branches/ubuntu/vivid/qpdfview/vivid

« back to all changes in this revision

Viewing changes to sources/bookmarkmenu.cpp

  • Committer: Package Import Robot
  • Author(s): Benjamin Eltzner
  • Date: 2014-10-22 21:49:15 UTC
  • mfrom: (1.2.15)
  • Revision ID: package-import@ubuntu.com-20141022214915-agqeoe318lzs2s4d
Tags: 0.4.12-1
* New upstream release.
* Fixed option to zoom to selection and implemented tiled rendering
  (Closes: #739554)
* Enable support for qt5 and poppler-qt5.
* Explicit dependence on hicolor-icon-theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
 
3
Copyright 2014 S. Razi Alavizadeh
3
4
Copyright 2012-2014 Adam Reichold
4
5
 
5
6
This file is part of qpdfview.
94
95
    }
95
96
}
96
97
 
97
 
QString BookmarkMenu::absoluteFilePath() const
98
 
{
99
 
    return menuAction()->data().toString();
100
 
}
101
 
 
102
 
JumpList BookmarkMenu::jumps() const
103
 
{
104
 
    JumpList jumps;
105
 
 
106
 
    foreach(const QAction* action, m_jumpToPageActionGroup->actions())
107
 
    {
108
 
        jumps.append(qMakePair(action->data().toInt(), action->text()));
109
 
    }
110
 
 
111
 
    return jumps;
112
 
}
113
 
 
114
 
void BookmarkMenu::on_removeBookmark_triggered()
115
 
{
116
 
    deleteLater();
117
 
}
118
 
 
119
98
void BookmarkMenu::on_open_triggered()
120
99
{
121
100
    emit openTriggered(absoluteFilePath());
131
110
    emit jumpToPageTriggered(absoluteFilePath(), action->data().toInt());
132
111
}
133
112
 
 
113
void BookmarkMenu::on_removeBookmark_triggered()
 
114
{
 
115
    emit removeBookmarkTriggered(absoluteFilePath());
 
116
}
 
117
 
134
118
} // qpdfview