summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/comapp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt/comapp')
-rw-r--r--examples/activeqt/comapp/comapp.pro2
-rw-r--r--examples/activeqt/comapp/main.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/activeqt/comapp/comapp.pro b/examples/activeqt/comapp/comapp.pro
index 84ce072..c7feb02 100644
--- a/examples/activeqt/comapp/comapp.pro
+++ b/examples/activeqt/comapp/comapp.pro
@@ -1,6 +1,8 @@
TEMPLATE = app
CONFIG += qaxserver
+QT += widgets
+
# Input
SOURCES += main.cpp
diff --git a/examples/activeqt/comapp/main.cpp b/examples/activeqt/comapp/main.cpp
index 66af248..0f5fe43 100644
--- a/examples/activeqt/comapp/main.cpp
+++ b/examples/activeqt/comapp/main.cpp
@@ -217,7 +217,7 @@ DocumentList *Application::documents() const
void Application::setVisible(bool on)
{
- ui->setShown(on);
+ ui->setVisible(on);
}
bool Application::isVisible() const