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
Utilities
Konsole
Commits
44962b4e
Commit
44962b4e
authored
Jul 02, 2007
by
Matthew Woehlke
Browse files
adapt to KPalette->KColorCollection rename and API cleanup
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=682401
parent
573f7636
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ViewContainer.cpp
View file @
44962b4e
...
...
@@ -41,7 +41,7 @@
#include
<KIconLoader>
#include
<KLocale>
#include
<KMenu>
#include
<K
Palette
>
#include
<K
ColorCollection
>
#include
<KTabWidget>
// Konsole
...
...
@@ -217,23 +217,23 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject*
//Create a colour selection palette and fill it with a range of suitable colours
QString
paletteName
;
QStringList
availablePalettes
=
K
Palette
::
getPaletteList
();
QStringList
availablePalettes
=
K
ColorCollection
::
installedCollections
();
if
(
availablePalettes
.
contains
(
"40.colors"
))
paletteName
=
"40.colors"
;
K
Palette
palette
(
paletteName
);
K
ColorCollection
palette
(
paletteName
);
//If the palette of colours was found, create a palette menu displaying those colors
//which the user chooses from when they activate the "Select Tab Color" sub-menu.
//
//If the palette is empty, default back to the old behaviour where the user is shown
//a color dialog when they click the "Select Tab Color" menu item.
if
(
palette
.
nrColors
()
>
0
)
if
(
palette
.
count
()
>
0
)
{
_tabColorCells
=
new
KColorCells
(
_tabWidget
,
palette
.
nrColors
()
/
8
,
8
);
_tabColorCells
=
new
KColorCells
(
_tabWidget
,
palette
.
count
()
/
8
,
8
);
for
(
int
i
=
0
;
i
<
palette
.
nrColors
();
i
++
)
for
(
int
i
=
0
;
i
<
palette
.
count
();
i
++
)
_tabColorCells
->
setColor
(
i
,
palette
.
color
(
i
));
...
...
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