Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Accessibility
KMag
Commits
30e3b4c5
Commit
30e3b4c5
authored
Jul 31, 2011
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
normalize signals/slots
svn path=/trunk/KDE/kdeaccessibility/kmag/; revision=1244221
parent
66c657dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
kmag.cpp
kmag.cpp
+4
-4
kmagselrect.cpp
kmagselrect.cpp
+11
-11
No files found.
kmag.cpp
View file @
30e3b4c5
...
...
@@ -136,14 +136,14 @@ void KmagApp::initActions()
fileNewWindow
=
actionCollection
()
->
addAction
(
QLatin1String
(
"new_window"
));
fileNewWindow
->
setIcon
(
KIcon
(
QLatin1String
(
"window-new"
)));
fileNewWindow
->
setText
(
i18n
(
"New &Window"
));
connect
(
fileNewWindow
,
SIGNAL
(
triggered
(
bool
)
),
SLOT
(
slotFileNewWindow
()));
connect
(
fileNewWindow
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
slotFileNewWindow
()));
fileNewWindow
->
setShortcuts
(
KStandardShortcut
::
openNew
());
fileNewWindow
->
setToolTip
(
i18n
(
"Open a new KMagnifier window"
));
refreshSwitch
=
actionCollection
()
->
addAction
(
QLatin1String
(
"start_stop_refresh"
));
refreshSwitch
->
setIcon
(
KIcon
(
QLatin1String
(
"process-stop"
)));
refreshSwitch
->
setText
(
i18n
(
"&Stop"
));
connect
(
refreshSwitch
,
SIGNAL
(
triggered
(
bool
)
),
SLOT
(
slotToggleRefresh
()));
connect
(
refreshSwitch
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
slotToggleRefresh
()));
refreshSwitch
->
setShortcuts
(
KStandardShortcut
::
reload
());
refreshSwitch
->
setToolTip
(
i18n
(
"Click to stop window refresh"
));
refreshSwitch
->
setWhatsThis
(
i18n
(
"Clicking on this icon will <b>start</b> / <b>stop</b>\
...
...
@@ -153,7 +153,7 @@ void KmagApp::initActions()
m_pSnapshot
=
actionCollection
()
->
addAction
(
QLatin1String
(
"snapshot"
));
m_pSnapshot
->
setIcon
(
KIcon
(
QLatin1String
(
"ksnapshot"
)));
m_pSnapshot
->
setText
(
i18n
(
"&Save Snapshot As..."
));
connect
(
m_pSnapshot
,
SIGNAL
(
triggered
(
bool
)
),
SLOT
(
saveZoomPixmap
()));
connect
(
m_pSnapshot
,
SIGNAL
(
triggered
(
bool
)),
SLOT
(
saveZoomPixmap
()));
m_pSnapshot
->
setShortcuts
(
KStandardShortcut
::
save
());
m_pSnapshot
->
setWhatsThis
(
i18n
(
"Saves the zoomed view to an image file."
));
m_pSnapshot
->
setToolTip
(
i18n
(
"Save image to a file"
));
...
...
@@ -813,7 +813,7 @@ void KmagApp::slotEditToolbars()
KConfigGroup
cg
(
KGlobal
::
config
(),
"MainWindow"
);
saveMainWindowSettings
(
cg
);
KEditToolBar
dlg
(
actionCollection
()
);
connect
(
&
dlg
,
SIGNAL
(
newToolBarConfig
()
),
this
,
SLOT
(
slotNewToolbarConfig
()
)
);
connect
(
&
dlg
,
SIGNAL
(
newToolBarConfig
()),
this
,
SLOT
(
slotNewToolbarConfig
())
);
if
(
dlg
.
exec
()
)
createGUI
();
}
...
...
kmagselrect.cpp
View file @
30e3b4c5
...
...
@@ -156,7 +156,7 @@ void KMagSelRect::show()
if
(
selectionwindow
==
0
)
{
selectionwindow
=
new
KMagSelWin
(
selWindowParent
);
selectionwindow
->
setObjectName
(
QLatin1String
(
"selectionwindow"
));
connect
(
selectionwindow
,
SIGNAL
(
resized
()),
this
,
SLOT
(
selWinResized
()));
connect
(
selectionwindow
,
SIGNAL
(
resized
()),
this
,
SLOT
(
selWinResized
()));
update
();
selectionwindow
->
show
();
...
...
@@ -215,36 +215,36 @@ KMagSelWin::KMagSelWin ( QWidget * parent, Qt::WFlags ) :
setPaletteColor
(
titleBar
,
QPalette
::
Background
,
getTitleColor
());
setPaletteColor
(
titleBar
,
QPalette
::
Foreground
,
getTextColor
());
titleBar
->
setText
(
i18n
(
"Selection Window"
)
+
QLatin1String
(
" - "
)
+
i18n
(
"KMagnifier"
));
connect
(
titleBar
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
titleBar
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
titleMoved
(
QPoint
)));
connect
(
titleBar
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
titleBar
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
titleMoved
(
QPoint
)));
topLeftCorner
=
new
KMagSelWinCorner
(
this
);
topLeftCorner
->
setObjectName
(
QLatin1String
(
"topleft"
));
topLeftCorner
->
setCursor
(
Qt
::
SizeFDiagCursor
);
setPaletteColor
(
topLeftCorner
,
QPalette
::
Background
,
getTitleBtnColor
());
connect
(
topLeftCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
topLeftCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
topLeftResized
(
QPoint
)));
connect
(
topLeftCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
topLeftCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
topLeftResized
(
QPoint
)));
topRightCorner
=
new
KMagSelWinCorner
(
this
);
topRightCorner
->
setObjectName
(
QLatin1String
(
"topright"
));
topRightCorner
->
setCursor
(
Qt
::
SizeBDiagCursor
);
setPaletteColor
(
topRightCorner
,
QPalette
::
Background
,
getTitleBtnColor
());
connect
(
topRightCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
topRightCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
topRightResized
(
QPoint
)));
connect
(
topRightCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
topRightCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
topRightResized
(
QPoint
)));
bottomLeftCorner
=
new
KMagSelWinCorner
(
this
);
bottomLeftCorner
->
setObjectName
(
QLatin1String
(
"bottomleft"
));
bottomLeftCorner
->
setCursor
(
Qt
::
SizeBDiagCursor
);
setPaletteColor
(
bottomLeftCorner
,
QPalette
::
Background
,
getTitleBtnColor
());
connect
(
bottomLeftCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
bottomLeftCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
bottomLeftResized
(
QPoint
)));
connect
(
bottomLeftCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
bottomLeftCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
bottomLeftResized
(
QPoint
)));
bottomRightCorner
=
new
KMagSelWinCorner
(
this
);
bottomRightCorner
->
setObjectName
(
QLatin1String
(
"bottomright"
));
bottomRightCorner
->
setCursor
(
Qt
::
SizeFDiagCursor
);
setPaletteColor
(
bottomRightCorner
,
QPalette
::
Background
,
getTitleBtnColor
());
connect
(
bottomRightCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
bottomRightCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
bottomRightResized
(
QPoint
)));
connect
(
bottomRightCorner
,
SIGNAL
(
startResizing
()),
this
,
SLOT
(
startResizing
()));
connect
(
bottomRightCorner
,
SIGNAL
(
resized
(
QPoint
)),
this
,
SLOT
(
bottomRightResized
(
QPoint
)));
}
KMagSelWin
::~
KMagSelWin
()
...
...
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