1
/* * This file is part of Maliit framework *
3
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: maliit-discuss@lists.maliit.org
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License version 2.1 as published by the Free Software Foundation
11
* and appearing in the file LICENSE.LGPL included in the packaging
15
#include "mimpluginsproxywidget.h"
16
#include "mimserveroptions.h"
19
#include "mimxapplication.h"
22
#include <QApplication>
23
#include <QDesktopWidget>
25
MImPluginsProxyWidget::MImPluginsProxyWidget(QWidget *parent) :
28
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
29
setAttribute(Qt::WA_X11DoNotAcceptFocus);
30
setAutoFillBackground(false);
31
setBackgroundRole(QPalette::NoRole);
33
// X11-specific initialization is performed in MImXApplication()
34
#if !defined(Q_WS_X11)
35
setAttribute(Qt::WA_TranslucentBackground);
37
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
38
QDesktopWidget* desktop = QApplication::desktop();
39
setMinimumSize(desktop->screenGeometry().size());