mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
Code maintenance for Qt 5:
- Fixed some missing headers - Fixed some deprecated functions git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6845 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
30103ef5f2
commit
3e15a7bb86
15 changed files with 136 additions and 147 deletions
|
@ -17,22 +17,24 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
****************************************************************/
|
||||
|
||||
#include <util/Widget.h>
|
||||
|
||||
#include <QtGui>
|
||||
|
||||
QGridLayout * Widget::createLayout(QWidget * parent) {
|
||||
QGridLayout * layout = new QGridLayout(parent);
|
||||
layout->setSpacing(0);
|
||||
layout->setMargin(0);
|
||||
return layout;
|
||||
}
|
||||
|
||||
QDialog * Widget::transformToWindow(QWidget * widget) {
|
||||
QDialog * dialog = new QDialog(widget->parentWidget());
|
||||
widget->setParent(NULL);
|
||||
createLayout(dialog)->addWidget(widget);
|
||||
return dialog;
|
||||
}
|
||||
****************************************************************/
|
||||
|
||||
#include <util/Widget.h>
|
||||
|
||||
#include <QDialog>
|
||||
#include <QWidget>
|
||||
#include <QGridLayout>
|
||||
|
||||
QGridLayout * Widget::createLayout(QWidget * parent) {
|
||||
QGridLayout * layout = new QGridLayout(parent);
|
||||
layout->setSpacing(0);
|
||||
layout->setMargin(0);
|
||||
return layout;
|
||||
}
|
||||
|
||||
QDialog * Widget::transformToWindow(QWidget * widget) {
|
||||
QDialog * dialog = new QDialog(widget->parentWidget());
|
||||
widget->setParent(NULL);
|
||||
createLayout(dialog)->addWidget(widget);
|
||||
return dialog;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue