Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
46ff5da1
Commit
46ff5da1
authored
Dec 16, 2009
by
con
Browse files
Revert the "More..." output pane button again.
parent
d7e04f3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/outputpane.cpp
View file @
46ff5da1
...
...
@@ -53,7 +53,6 @@
#include <QtGui/QFocusEvent>
#include <QtGui/QHBoxLayout>
#include <QtGui/QSplitter>
#include <QtGui/QMenu>
#include <QtGui/QPainter>
#include <QtGui/QToolButton>
#include <QtGui/QStackedWidget>
...
...
@@ -315,7 +314,6 @@ void OutputPaneManager::init()
cmd
=
am
->
registerAction
(
sep
,
QLatin1String
(
"Coreplugin.OutputPane.Sep"
),
globalcontext
);
mpanes
->
addAction
(
cmd
,
"Coreplugin.OutputPane.ActionsGroup"
);
m_morePanesMenu
=
new
QMenu
(
this
);
QList
<
IOutputPane
*>
panes
=
ExtensionSystem
::
PluginManager
::
instance
()
->
getObjects
<
IOutputPane
>
();
QMultiMap
<
int
,
IOutputPane
*>
sorted
;
...
...
@@ -357,9 +355,7 @@ void OutputPaneManager::init()
mpanes
->
addAction
(
cmd
,
"Coreplugin.OutputPane.PanesGroup"
);
m_actions
.
insert
(
cmd
->
action
(),
idx
);
if
(
outPane
->
priorityInStatusBar
()
==
-
1
)
{
m_morePanesMenu
->
addAction
(
cmd
->
action
());
}
else
{
if
(
outPane
->
priorityInStatusBar
()
!=
-
1
)
{
cmd
->
setDefaultKeySequence
(
QKeySequence
(
paneShortCut
(
shortcutNumber
)));
QPushButton
*
button
=
new
OutputPaneToggleButton
(
shortcutNumber
,
outPane
->
name
(),
cmd
->
action
());
...
...
@@ -375,19 +371,6 @@ void OutputPaneManager::init()
connect
(
cmd
->
action
(),
SIGNAL
(
triggered
()),
this
,
SLOT
(
shortcutTriggered
()));
}
while
(
it
!=
begin
);
// add the "More..." button
{
QString
actionId
=
QString
(
"QtCreator.Pane.More"
);
QAction
*
action
=
new
QAction
(
tr
(
"More..."
),
this
);
Command
*
cmd
=
am
->
registerAction
(
action
,
actionId
,
QList
<
int
>
()
<<
Constants
::
C_GLOBAL_ID
);
cmd
->
setDefaultKeySequence
(
QKeySequence
(
paneShortCut
(
shortcutNumber
)));
QPushButton
*
moreButton
=
new
OutputPaneToggleButton
(
shortcutNumber
,
tr
(
"More..."
),
cmd
->
action
());
moreButton
->
setMenu
(
m_morePanesMenu
);
m_buttonsWidget
->
layout
()
->
addWidget
(
moreButton
);
connect
(
cmd
->
action
(),
SIGNAL
(
triggered
()),
moreButton
,
SLOT
(
showMenu
()));
}
changePage
();
}
...
...
src/plugins/coreplugin/outputpane.h
View file @
46ff5da1
...
...
@@ -41,7 +41,6 @@ class QAction;
class
QComboBox
;
class
QToolButton
;
class
QStackedWidget
;
class
QMenu
;
class
QSplitter
;
QT_END_NAMESPACE
...
...
@@ -149,7 +148,6 @@ private:
QWidget
*
m_buttonsWidget
;
QMap
<
int
,
QPushButton
*>
m_buttons
;
QMap
<
QAction
*
,
int
>
m_actions
;
QMenu
*
m_morePanesMenu
;
};
class
OutputPaneToggleButton
:
public
QPushButton
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment