Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KRuler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Graphics
KRuler
Commits
09750e25
Commit
09750e25
authored
Mar 05, 2009
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now make "apply" in config dialog works
svn path=/trunk/KDE/kdegraphics/kruler/; revision=935478
parent
bc2ad26b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
klineal.cpp
klineal.cpp
+23
-18
klineal.h
klineal.h
+1
-0
No files found.
klineal.cpp
View file @
09750e25
...
...
@@ -629,30 +629,35 @@ void KLineal::slotPreferences()
advancedConfig
.
setupUi
(
advancedConfigWidget
);
dialog
->
addPage
(
advancedConfigWidget
,
i18n
(
"Advanced"
),
"preferences-other"
);
connect
(
dialog
,
SIGNAL
(
settingsChanged
(
const
QString
&
)),
SLOT
(
loadConfig
()));
dialog
->
exec
();
mColor
=
RulerSettings
::
self
()
->
bgColor
();
mScaleFont
=
RulerSettings
::
self
()
->
scaleFont
();
repaint
();
saveSettings
();
delete
dialog
;
}
if
(
RulerSettings
::
self
()
->
trayIcon
()
)
{
if
(
!
mTrayIcon
)
{
createSystemTray
();
//need to adjust button
adjustButtons
();
}
else
mTrayIcon
->
show
();
}
else
{
if
(
mTrayIcon
)
{
mTrayIcon
->
hide
();
}
}
void
KLineal
::
loadConfig
()
{
mColor
=
RulerSettings
::
self
()
->
bgColor
();
mScaleFont
=
RulerSettings
::
self
()
->
scaleFont
();
saveSettings
();
if
(
RulerSettings
::
self
()
->
trayIcon
()
)
{
if
(
!
mTrayIcon
)
{
createSystemTray
();
//need to adjust button
adjustButtons
();
}
else
mTrayIcon
->
show
();
}
else
{
if
(
mTrayIcon
)
{
mTrayIcon
->
hide
();
}
}
repaint
();
}
void
KLineal
::
switchRelativeScale
(
bool
checked
)
{
mRelativeScale
=
checked
;
...
...
klineal.h
View file @
09750e25
...
...
@@ -127,5 +127,6 @@ public slots:
void
saveSettings
();
void
slotClose
();
void
slotQuit
();
void
loadConfig
();
};
#endif
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