Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
663e342a
Commit
663e342a
authored
Mar 18, 2012
by
Jekyll Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Krazy fix: add the missing KUIT context marker
parent
634e1798
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
src/ColorSchemeEditor.cpp
src/ColorSchemeEditor.cpp
+1
-1
src/MainWindow.cpp
src/MainWindow.cpp
+7
-7
src/ViewContainer.cpp
src/ViewContainer.cpp
+2
-2
No files found.
src/ColorSchemeEditor.cpp
View file @
663e342a
...
...
@@ -204,7 +204,7 @@ void ColorSchemeEditor::setupColorTable(const ColorScheme* colors)
QTableWidgetItem
*
colorItem
=
new
QTableWidgetItem
();
colorItem
->
setBackground
(
table
[
row
].
color
);
colorItem
->
setFlags
(
colorItem
->
flags
()
&
~
Qt
::
ItemIsEditable
&
~
Qt
::
ItemIsSelectable
);
colorItem
->
setToolTip
(
i18n
(
"Click to choose
different
color"
));
colorItem
->
setToolTip
(
i18n
c
(
"@info:tooltip"
,
"Click to choose color"
));
_ui
->
colorTable
->
setItem
(
row
,
0
,
nameItem
);
_ui
->
colorTable
->
setItem
(
row
,
1
,
colorItem
);
...
...
src/MainWindow.cpp
View file @
663e342a
...
...
@@ -274,7 +274,7 @@ void MainWindow::setupActions()
KAction
*
menuAction
=
0
;
// File Menu
_newTabMenuAction
=
new
KActionMenu
(
KIcon
(
"tab-new"
),
i18n
(
"&New Tab"
),
collection
);
_newTabMenuAction
=
new
KActionMenu
(
KIcon
(
"tab-new"
),
i18n
c
(
"@action:inmenu"
,
"&New Tab"
),
collection
);
_newTabMenuAction
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_T
));
_newTabMenuAction
->
setShortcutConfigurable
(
true
);
_newTabMenuAction
->
setAutoRepeat
(
false
);
...
...
@@ -283,26 +283,26 @@ void MainWindow::setupActions()
menuAction
=
collection
->
addAction
(
"clone-tab"
);
menuAction
->
setIcon
(
KIcon
(
"tab-duplicate"
)
);
menuAction
->
setText
(
i18n
(
"&Clone Tab"
)
);
menuAction
->
setText
(
i18n
c
(
"@action:inmenu"
,
"&Clone Tab"
)
);
menuAction
->
setShortcut
(
QKeySequence
()
);
menuAction
->
setAutoRepeat
(
false
);
connect
(
menuAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
cloneTab
()));
menuAction
=
collection
->
addAction
(
"new-window"
);
menuAction
->
setIcon
(
KIcon
(
"window-new"
));
menuAction
->
setText
(
i18n
(
"New &Window"
));
menuAction
->
setText
(
i18n
c
(
"@action:inmenu"
,
"New &Window"
));
menuAction
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_N
));
menuAction
->
setAutoRepeat
(
false
);
connect
(
menuAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
newWindow
()));
menuAction
=
collection
->
addAction
(
"close-window"
);
menuAction
->
setIcon
(
KIcon
(
"window-close"
));
menuAction
->
setText
(
i18n
(
"Close Window"
));
menuAction
->
setText
(
i18n
c
(
"@action:inmenu"
,
"Close Window"
));
menuAction
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
SHIFT
+
Qt
::
Key_Q
));
connect
(
menuAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
close
()));
// Bookmark Menu
KActionMenu
*
bookmarkMenu
=
new
KActionMenu
(
i18n
(
"&Bookmarks"
)
,
collection
);
KActionMenu
*
bookmarkMenu
=
new
KActionMenu
(
i18n
c
(
"@title:menu"
,
"&Bookmarks"
)
,
collection
);
_bookmarkHandler
=
new
BookmarkHandler
(
collection
,
bookmarkMenu
->
menu
()
,
true
,
this
);
collection
->
addAction
(
"bookmark"
,
bookmarkMenu
);
connect
(
_bookmarkHandler
,
SIGNAL
(
openUrls
(
QList
<
KUrl
>
))
,
this
,
SLOT
(
openUrls
(
QList
<
KUrl
>
)));
...
...
@@ -320,7 +320,7 @@ void MainWindow::setupActions()
KStandardAction
::
preferences
(
this
,
SLOT
(
showSettingsDialog
()),
collection
);
menuAction
=
collection
->
addAction
(
"manage-profiles"
);
menuAction
->
setText
(
i18n
(
"Manage Profiles..."
));
menuAction
->
setText
(
i18n
c
(
"@action:inmenu"
,
"Manage Profiles..."
));
menuAction
->
setIcon
(
KIcon
(
"configure"
));
connect
(
menuAction
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
showManageProfilesDialog
()));
...
...
@@ -521,7 +521,7 @@ bool MainWindow::queryClose()
"Do you still want to quit?"
,
"There are %1 tabs open in this window. "
"Do you still want to quit?"
,
openTabs
),
i18n
(
"Confirm Close"
),
i18n
c
(
"@title"
,
"Confirm Close"
),
KStandardGuiItem
::
quit
(),
KGuiItem
(
i18n
(
"Close Current Tab"
),
"tab-close"
),
KStandardGuiItem
::
cancel
(),
...
...
src/ViewContainer.cpp
View file @
663e342a
...
...
@@ -458,12 +458,12 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject*
// The 'new tab' and 'close tab' button
_newTabButton
=
new
QToolButton
(
_containerWidget
);
_newTabButton
->
setIcon
(
KIcon
(
"tab-new"
));
_newTabButton
->
setToolTip
(
i18n
(
"
Open a
new tab"
));
_newTabButton
->
setToolTip
(
i18n
c
(
"
@info:tooltip"
,
"Create
new tab"
));
_newTabButton
->
adjustSize
();
_closeTabButton
=
new
QToolButton
(
_containerWidget
);
_closeTabButton
->
setIcon
(
KIcon
(
"tab-close"
));
_closeTabButton
->
setToolTip
(
i18n
(
"Clos
e th
e current tab"
));
_closeTabButton
->
setToolTip
(
i18n
c
(
"
@info:tooltip"
,
"
Close current tab"
));
_closeTabButton
->
adjustSize
();
// 'new tab' button is initially hidden. It will be shown when setFeatures()
...
...
Write
Preview
Markdown
is supported
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