from central widget to it parent; refs #167
This commit is contained in:
1 parent
997e2b37b3
commit
616a6bde2e
1 file changed
+1
-1
@@ -31,7 +31,7 @@ namespace qbrowserlib {
|
||||
public:
|
||||
SwissWebWidget(QWidget* p=0): QWidget(p) {
|
||||
setupUi(this);
|
||||
QMainWindow* w(qobject_cast<QMainWindow*>(p));
|
||||
QMainWindow* w(qobject_cast<QMainWindow*>(p?p->parentWidget():p));
|
||||
qDebug()<<"Parent "<<p<<(w?"is":"is not")<<" a QMainWindow";
|
||||
if (w) {
|
||||
/*! Within a QMainWindow, the widget automatically reparents
|
||||
|
||||
Reference in new issue
Block a user