Commit 30e3b4c5 authored by Laurent Montel's avatar Laurent Montel 😁

normalize signals/slots

svn path=/trunk/KDE/kdeaccessibility/kmag/; revision=1244221
parent 66c657dd
......@@ -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();
}
......
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment