mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Added "New Tab" menu, plus corrected copyright headers.
This commit is contained in:
parent
0e9f5f28c2
commit
3266a6ef4c
|
@ -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 ) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -65,6 +65,8 @@
|
|||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="newTab"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="pageSetup"/>
|
||||
<addaction name="printPreview"/>
|
||||
<addaction name="print"/>
|
||||
|
@ -400,6 +402,21 @@
|
|||
<string>&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>
|
||||
|
|
Loading…
Reference in a new issue