* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include <QAction>
QIcon(":/icons/zoom-fit.png")));
action_view_zoom_fit_->setShortcut(QKeySequence(Qt::Key_F));
connect(action_view_zoom_fit_, SIGNAL(triggered(bool)),
- this, SLOT(on_actionViewZoomFit_triggered()));
+ this, SLOT(on_actionViewZoomFit_triggered(bool)));
action_view_zoom_one_to_one_->setText(tr("Zoom to O&ne-to-One"));
action_view_zoom_one_to_one_->setIcon(QIcon::fromTheme("zoom-original",
this, SLOT(on_actionViewShowCursors_triggered()));
action_view_show_cursors_->setText(tr("Show &Cursors"));
+ connect(view_, SIGNAL(always_zoom_to_fit_changed(bool)),
+ this, SLOT(on_always_zoom_to_fit_changed(bool)));
+
if (add_default_widgets)
add_toolbar_widgets();
}
-Session &StandardBar::session(void) const
+Session &StandardBar::session() const
{
return session_;
}
view_->zoom(-1);
}
-void StandardBar::on_actionViewZoomFit_triggered()
+void StandardBar::on_actionViewZoomFit_triggered(bool checked)
{
- view_->zoom_fit(action_view_zoom_fit_->isChecked());
+ view_->zoom_fit(checked);
}
void StandardBar::on_actionViewZoomOneToOne_triggered()