Added "New Tab" menu, plus corrected copyright headers.

This commit is contained in:
Tvangeste 2011-06-25 09:34:28 +02:00
parent 0e9f5f28c2
commit 3266a6ef4c
5 changed files with 28 additions and 1 deletions

View file

@ -1,3 +1,6 @@
/* This file is (c) 2011 Tvangeste <i.4m.l33t@yandex.ru>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#include "maintabwidget.hh"
MainTabWidget::MainTabWidget( QWidget * parent) : QTabWidget( parent ) {

View file

@ -1,4 +1,4 @@
/* This file is (c) 2008-2011 Konstantin Isakov <ikm@goldendict.org>
/* This file is (c) 2011 Tvangeste <i.4m.l33t@yandex.ru>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#ifndef MAINTABWIDGET_HH

View file

@ -2044,6 +2044,11 @@ void MainWindow::on_clearHistory_activated()
history.save();
}
void MainWindow::on_newTab_activated()
{
addNewTab();
}
void MainWindow::setAutostart(bool autostart)
{
#ifdef Q_OS_WIN32

View file

@ -285,6 +285,8 @@ private slots:
void menuHistoryTriggered( QAction * );
void on_clearHistory_activated();
void on_newTab_activated();
void on_actionCloseToTray_activated();
void on_pageSetup_activated();

View file

@ -65,6 +65,8 @@
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="newTab"/>
<addaction name="separator"/>
<addaction name="pageSetup"/>
<addaction name="printPreview"/>
<addaction name="print"/>
@ -400,6 +402,21 @@
<string>&amp;Clear</string>
</property>
</action>
<action name="newTab">
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/icons/addtab.png</normaloff>:/icons/addtab.png</iconset>
</property>
<property name="text">
<string>New Tab</string>
</property>
<property name="shortcut">
<string>Ctrl+T</string>
</property>
<property name="shortcutContext">
<enum>Qt::WidgetShortcut</enum>
</property>
</action>
</widget>
<customwidgets>
<customwidget>