Commit 804c29d9 authored by Laurent Montel's avatar Laurent Montel 😁

Use QLatin1String

svn path=/trunk/KDE/kdeaccessibility/kmag/; revision=1178060
parent 25b4ba91
......@@ -155,7 +155,7 @@ void KMagSelRect::show()
{
if (selectionwindow == 0) {
selectionwindow = new KMagSelWin (selWindowParent);
selectionwindow->setObjectName("selectionwindow");
selectionwindow->setObjectName( QLatin1String("selectionwindow" ));
connect (selectionwindow, SIGNAL (resized ()), this, SLOT (selWinResized ()));
update();
......@@ -211,7 +211,7 @@ KMagSelWin::KMagSelWin ( QWidget * parent, Qt::WFlags ) :
setPalette(p);
titleBar = new KMagSelWinCorner (this);
titleBar->setObjectName("titlebar");
titleBar->setObjectName( QLatin1String("titlebar" ));
setPaletteColor(titleBar, QPalette::Background, getTitleColor());
setPaletteColor(titleBar, QPalette::Foreground, getTextColor());
titleBar->setText(i18n("Selection Window")+" - "+i18n("KMagnifier"));
......@@ -219,28 +219,28 @@ KMagSelWin::KMagSelWin ( QWidget * parent, Qt::WFlags ) :
connect (titleBar, SIGNAL (resized (QPoint)), this, SLOT (titleMoved (QPoint)));
topLeftCorner = new KMagSelWinCorner (this);
topLeftCorner->setObjectName("topleft");
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)));
topRightCorner = new KMagSelWinCorner (this);
topRightCorner->setObjectName("topright");
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)));
bottomLeftCorner = new KMagSelWinCorner (this);
bottomLeftCorner->setObjectName("bottomleft");
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)));
bottomRightCorner = new KMagSelWinCorner (this);
bottomRightCorner->setObjectName("bottomright");
bottomRightCorner->setObjectName( QLatin1String("bottomright" ));
bottomRightCorner->setCursor (Qt::SizeFDiagCursor);
setPaletteColor(bottomRightCorner, QPalette::Background, getTitleBtnColor ());
connect (bottomRightCorner, SIGNAL (startResizing ()), this, SLOT (startResizing ()));
......
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