aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-08-28 14:23:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-28 14:44:43 +0200
commit07af94641a1b244063525def6a0dcf3f427e0c24 (patch)
tree09685a302c3ca0c6c979afee9c0ed5021d684fb6 /examples
parent4dfc8907c8cc21e0e75812c561c2036746ac07c6 (diff)
Rename the QWinExtras namespace to QtWinExtras
Change-Id: I24cc4cfa5b51d14bc70a895d625c98e49af4537d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/winextras/dwmfeatures/examplewidget.cpp22
-rw-r--r--examples/winextras/iconextractor/main.cpp2
2 files changed, 12 insertions, 12 deletions
diff --git a/examples/winextras/dwmfeatures/examplewidget.cpp b/examples/winextras/dwmfeatures/examplewidget.cpp
index 2380e09..afb9e2e 100644
--- a/examples/winextras/dwmfeatures/examplewidget.cpp
+++ b/examples/winextras/dwmfeatures/examplewidget.cpp
@@ -95,29 +95,29 @@ bool ExampleWidget::event(QEvent *e)
void ExampleWidget::onDisallowPeekClicked()
{
- QWinExtras::setWindowDisallowPeek(this, ui->btnPeekDisallow->isChecked());
+ QtWinExtras::setWindowDisallowPeek(this, ui->btnPeekDisallow->isChecked());
}
void ExampleWidget::onExcludeFromPeekClicked()
{
- QWinExtras::setWindowExcludedFromPeek(this, ui->btnPeekExclude->isChecked());
+ QtWinExtras::setWindowExcludedFromPeek(this, ui->btnPeekExclude->isChecked());
}
void ExampleWidget::onFlip3DPolicyChanged()
{
- QWinExtras::WindowFlip3DPolicy policy;
+ QtWinExtras::WindowFlip3DPolicy policy;
if (ui->radioFlipAbove->isChecked())
- policy = QWinExtras::FlipExcludeAbove;
+ policy = QtWinExtras::FlipExcludeAbove;
else if (ui->radioFlipBelow->isChecked())
- policy = QWinExtras::FlipExcludeBelow;
+ policy = QtWinExtras::FlipExcludeBelow;
else
- policy = QWinExtras::FlipDefault;
- QWinExtras::setWindowFlip3DPolicy(this, policy);
+ policy = QtWinExtras::FlipDefault;
+ QtWinExtras::setWindowFlip3DPolicy(this, policy);
}
void ExampleWidget::onGlassMarginsChanged()
{
- if (!QWinExtras::isCompositionEnabled())
+ if (!QtWinExtras::isCompositionEnabled())
return;
// what you see here is the only way to force widget to redraw itself
@@ -133,7 +133,7 @@ void ExampleWidget::onGlassMarginsChanged()
resize(modified);
setAttribute(Qt::WA_NoSystemBackground);
- QWinExtras::extendFrameIntoClientArea(this,
+ QtWinExtras::extendFrameIntoClientArea(this,
ui->frameTop->value(),
ui->frameRight->value(),
ui->frameBottom->value(),
@@ -145,7 +145,7 @@ void ExampleWidget::onGlassMarginsChanged()
ui->groupBox_3->setAutoFillBackground(true);
ui->groupBox_4->setAutoFillBackground(true);
} else {
- QWinExtras::extendFrameIntoClientArea(this,
+ QtWinExtras::extendFrameIntoClientArea(this,
ui->frameLeft->value(),
ui->frameTop->value(),
ui->frameRight->value(),
@@ -163,7 +163,7 @@ void ExampleWidget::onResetGlassFrameClicked()
ui->frameBottom->setValue(0);
ui->frameLeft->setValue(0);
- QWinExtras::resetExtendedFrame(this);
+ QtWinExtras::resetExtendedFrame(this);
setAttribute(Qt::WA_NoSystemBackground, false);
QSize original = size();
diff --git a/examples/winextras/iconextractor/main.cpp b/examples/winextras/iconextractor/main.cpp
index 8511ff1..ada2536 100644
--- a/examples/winextras/iconextractor/main.cpp
+++ b/examples/winextras/iconextractor/main.cpp
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
imageFileRoot = imageFileRootInfo.absoluteFilePath() + QLatin1Char('/') + QFileInfo(sourceFile).baseName();
for (UINT i = 0; i < extractedIconCount; ++i) {
- const QPixmap pixmap = QWinExtras::fromHICON(icons[i]);
+ const QPixmap pixmap = QtWinExtras::fromHICON(icons[i]);
if (pixmap.isNull()) {
std::cerr << "Error converting icons.\n";
return 1;