Code maintenance for Qt 5:

- Replaced Qt::WFlags with Qt::WindowFlags.
- Removed path "QtCore/" and "QtGui/" from the includes.
- Replaced "QString::toAscii()" with "QString::toLatin1()".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6843 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-10-18 21:10:33 +00:00
parent 69862404d6
commit 135a5e579a
101 changed files with 127 additions and 127 deletions

View file

@ -25,7 +25,7 @@
#include "interface/rsFeedReader.h" #include "interface/rsFeedReader.h"
/** Constructor */ /** Constructor */
FeedReaderConfig::FeedReaderConfig(QWidget *parent, Qt::WFlags flags) FeedReaderConfig::FeedReaderConfig(QWidget *parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags), ui(new Ui::FeedReaderConfig) : ConfigPage(parent, flags), ui(new Ui::FeedReaderConfig)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -37,7 +37,7 @@ class FeedReaderConfig : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
FeedReaderConfig(QWidget *parent = 0, Qt::WFlags flags = 0); FeedReaderConfig(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
virtual ~FeedReaderConfig(); virtual ~FeedReaderConfig();

View file

@ -50,7 +50,7 @@ void AudioInputDialog::showEvent(QShowEvent *) {
}*/ }*/
/** Constructor */ /** Constructor */
AudioInputConfig::AudioInputConfig(QWidget * parent, Qt::WFlags flags) AudioInputConfig::AudioInputConfig(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -59,7 +59,7 @@ class AudioInputConfig : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
AudioInputConfig(QWidget * parent = 0, Qt::WFlags flags = 0); AudioInputConfig(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~AudioInputConfig(); ~AudioInputConfig();

View file

@ -31,8 +31,8 @@
#ifndef _AUDIOSTATS_H #ifndef _AUDIOSTATS_H
#define _AUDIOSTATS_H #define _AUDIOSTATS_H
#include <QtCore/QtCore> #include <QtCore>
#include <QtGui/QtGui> #include <QtGui>
//#include "mumble_pch.hpp" //#include "mumble_pch.hpp"

View file

@ -27,11 +27,11 @@
#include <retroshare/rspeers.h> #include <retroshare/rspeers.h>
#include "settings/rsharesettings.h" #include "settings/rsharesettings.h"
#include <QtGui/QHBoxLayout> #include <QHBoxLayout>
#include <QtGui/QPainter> #include <QPainter>
#include <QtGui/QBrush> #include <QBrush>
#include <QtGui/QMessageBox> #include <QMessageBox>
#include <QtGui/QStyle> #include <QStyle>
#include <assert.h> #include <assert.h>
AboutDialog::AboutDialog(QWidget* parent) AboutDialog::AboutDialog(QWidget* parent)

View file

@ -25,14 +25,14 @@
#include "ui_AboutDialog.h" #include "ui_AboutDialog.h"
#include <QtCore/QBasicTimer> #include <QBasicTimer>
#include <QtCore/QPointer> #include <QPointer>
#include <QtGui/QDialog> #include <QDialog>
#include <QtGui/QLabel> #include <QLabel>
#include <QtGui/QPaintEvent> #include <QPaintEvent>
#include <QtGui/QKeyEvent> #include <QKeyEvent>
#include <QtGui/QMouseEvent> #include <QMouseEvent>
class AWidget; class AWidget;

View file

@ -45,7 +45,7 @@
#define IMAGE_MESSAGE ":images/chat.png" #define IMAGE_MESSAGE ":images/chat.png"
#define IMAGE_AUTOSUBSCRIBE ":images/accepted16.png" #define IMAGE_AUTOSUBSCRIBE ":images/accepted16.png"
ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WFlags flags) ChatLobbyWidget::ChatLobbyWidget(QWidget *parent, Qt::WindowFlags flags)
: RsAutoUpdatePage(5000, parent, flags) : RsAutoUpdatePage(5000, parent, flags)
{ {
setupUi(this); setupUi(this);

View file

@ -23,7 +23,7 @@ class ChatLobbyWidget : public RsAutoUpdatePage, Ui::ChatLobbyWidget
public: public:
/** Default constructor */ /** Default constructor */
ChatLobbyWidget(QWidget *parent = 0, Qt::WFlags flags = 0); ChatLobbyWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
~ChatLobbyWidget(); ~ChatLobbyWidget();

View file

@ -31,7 +31,7 @@
#include "gui/RetroShareLink.h" #include "gui/RetroShareLink.h"
/** Default constructor */ /** Default constructor */
DetailsDialog::DetailsDialog(QWidget *parent, Qt::WFlags flags) DetailsDialog::DetailsDialog(QWidget *parent, Qt::WindowFlags flags)
: QDialog(parent, flags) : QDialog(parent, flags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -33,7 +33,7 @@ class DetailsDialog : public QDialog
public: public:
/** Default constructor */ /** Default constructor */
DetailsDialog(QWidget *parent = 0, Qt::WFlags flags = 0); DetailsDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
~DetailsDialog() {} ~DetailsDialog() {}

View file

@ -40,7 +40,7 @@ static const int availability_map_size_X = 400 ;// length of availability bar
static const int availability_map_size_Y = 20 ; // height of availability bar static const int availability_map_size_Y = 20 ; // height of availability bar
static const int tab_size = 200 ;// size between tabulated entries static const int tab_size = 200 ;// size between tabulated entries
FileTransferInfoWidget::FileTransferInfoWidget(QWidget * /*parent*/, Qt::WFlags /*f*/ ) FileTransferInfoWidget::FileTransferInfoWidget(QWidget * /*parent*/, Qt::WindowFlags /*f*/ )
{ {
QRect TaskGraphRect = geometry(); QRect TaskGraphRect = geometry();
maxWidth = TaskGraphRect.width(); maxWidth = TaskGraphRect.width();

View file

@ -34,7 +34,7 @@ class FileTransferInfoWidget : public RsAutoUpdatePage
Q_OBJECT Q_OBJECT
public: public:
FileTransferInfoWidget(QWidget * parent = 0, Qt::WFlags f = 0 ); FileTransferInfoWidget(QWidget * parent = 0, Qt::WindowFlags f = 0 );
void setFileHash(const std::string& hash) { _file_hash = hash ; } void setFileHash(const std::string& hash) { _file_hash = hash ; }

View file

@ -394,7 +394,7 @@ void FriendsDialog::updateStatusString(const QString& peer_id, const QString& st
std::cerr << "FriendsDialog: received group chat typing info. updating gui." << std::endl ; std::cerr << "FriendsDialog: received group chat typing info. updating gui." << std::endl ;
#endif #endif
QString status = QString::fromUtf8(rsPeers->getPeerName(peer_id.toStdString()).c_str()) + " " + tr(status_string.toAscii()); QString status = QString::fromUtf8(rsPeers->getPeerName(peer_id.toStdString()).c_str()) + " " + tr(status_string.toLatin1());
ui.statusStringLabel->setText(status) ; // displays info for 5 secs. ui.statusStringLabel->setText(status) ; // displays info for 5 secs.
QTimer::singleShot(5000,this,SLOT(resetStatusBar())) ; QTimer::singleShot(5000,this,SLOT(resetStatusBar())) ;

View file

@ -26,8 +26,8 @@
#include <iostream> #include <iostream>
#include <QtCore/QFile> #include <QFile>
#include <QtCore/QTextStream> #include <QTextStream>
/* Images for context menu icons */ /* Images for context menu icons */
#define IMAGE_DOWNLOAD ":/images/start.png" #define IMAGE_DOWNLOAD ":/images/start.png"

View file

@ -25,7 +25,7 @@
#include <util/MouseEventFilter.h> #include <util/MouseEventFilter.h>
#include <QtGui/QtGui> #include <QtGui>
LogoBar::LogoBar(QWidget * parent) LogoBar::LogoBar(QWidget * parent)
: QFrame(parent) { : QFrame(parent) {

View file

@ -22,7 +22,7 @@
#ifndef LOGOBAR_H #ifndef LOGOBAR_H
#define LOGOBAR_H #define LOGOBAR_H
#include <QtGui/QFrame> #include <QFrame>
#include <string> #include <string>

View file

@ -176,7 +176,7 @@
} }
/** Constructor */ /** Constructor */
MainWindow::MainWindow(QWidget* parent, Qt::WFlags flags) MainWindow::MainWindow(QWidget* parent, Qt::WindowFlags flags)
: RWindow("MainWindow", parent, flags), ui(new Ui::MainWindow) : RWindow("MainWindow", parent, flags), ui(new Ui::MainWindow)
{ {
/* Invoke the Qt Designer generated QObject setup routine */ /* Invoke the Qt Designer generated QObject setup routine */

View file

@ -166,7 +166,7 @@ public slots:
protected: protected:
/** Default Constructor */ /** Default Constructor */
MainWindow(QWidget *parent = 0, Qt::WFlags flags = 0); MainWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
void closeEvent(QCloseEvent *); void closeEvent(QCloseEvent *);

View file

@ -92,7 +92,7 @@ void MessengerWindow::releaseInstance()
} }
/** Constructor */ /** Constructor */
MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags) MessengerWindow::MessengerWindow(QWidget* parent, Qt::WindowFlags flags)
: RWindow("MessengerWindow", parent, flags) : RWindow("MessengerWindow", parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -40,7 +40,7 @@ public slots:
protected: protected:
/** Default Constructor */ /** Default Constructor */
MessengerWindow(QWidget *parent = 0, Qt::WFlags flags = 0); MessengerWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~MessengerWindow(); ~MessengerWindow();

View file

@ -22,8 +22,8 @@
#ifndef _QUICKSTARTWIZARD_H #ifndef _QUICKSTARTWIZARD_H
#define _QUICKSTARTWIZARD_H #define _QUICKSTARTWIZARD_H
#include <QtGui/QDialog> #include <QDialog>
#include <QtGui/QWizard> #include <QWizard>
#include "ui_QuickStartWizard.h" #include "ui_QuickStartWizard.h"

View file

@ -959,7 +959,7 @@ bool RetroShareLink::checkSSLId(const QString& ssl_id)
if(ssl_id.length() != 32) if(ssl_id.length() != 32)
return false ; return false ;
QByteArray qb(ssl_id.toAscii()) ; QByteArray qb(ssl_id.toLatin1()) ;
for(int i=0;i<qb.length();++i) for(int i=0;i<qb.length();++i)
{ {
@ -976,7 +976,7 @@ bool RetroShareLink::checkPGPId(const QString& pgp_id)
if(pgp_id.length() != 16) if(pgp_id.length() != 16)
return false ; return false ;
QByteArray qb(pgp_id.toAscii()) ; QByteArray qb(pgp_id.toLatin1()) ;
for(int i=0;i<qb.length();++i) for(int i=0;i<qb.length();++i)
{ {
@ -990,7 +990,7 @@ bool RetroShareLink::checkPGPId(const QString& pgp_id)
} }
bool RetroShareLink::checkRadix64(const QString& s) bool RetroShareLink::checkRadix64(const QString& s)
{ {
QByteArray qb(s.toAscii()) ; QByteArray qb(s.toLatin1()) ;
for(int i=0;i<qb.length();++i) for(int i=0;i<qb.length();++i)
{ {
@ -1011,7 +1011,7 @@ bool RetroShareLink::checkHash(const QString& hash)
if(hash.length() != 40) if(hash.length() != 40)
return false ; return false ;
QByteArray qb(hash.toAscii()) ; QByteArray qb(hash.toLatin1()) ;
for(int i=0;i<qb.length();++i) for(int i=0;i<qb.length();++i)
{ {

View file

@ -52,7 +52,7 @@
/** Default constructor */ /** Default constructor */
BandwidthGraph::BandwidthGraph(QWidget *parent, Qt::WFlags flags) BandwidthGraph::BandwidthGraph(QWidget *parent, Qt::WindowFlags flags)
: RWindow("BandwidthGraph", parent, flags) : RWindow("BandwidthGraph", parent, flags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -42,7 +42,7 @@ class BandwidthGraph : public RWindow
public: public:
/** Default constructor */ /** Default constructor */
BandwidthGraph(QWidget *parent = 0, Qt::WFlags flags = 0); BandwidthGraph(QWidget *parent = 0, Qt::WindowFlags flags = 0);
public slots: public slots:
/** Overloaded QWidget.show */ /** Overloaded QWidget.show */

View file

@ -39,7 +39,7 @@
static std::map<std::string, ChatDialog*> chatDialogs; static std::map<std::string, ChatDialog*> chatDialogs;
ChatDialog::ChatDialog(QWidget *parent, Qt::WFlags flags) : ChatDialog::ChatDialog(QWidget *parent, Qt::WindowFlags flags) :
QWidget(parent, flags) QWidget(parent, flags)
{ {
setAttribute(Qt::WA_DeleteOnClose, true); setAttribute(Qt::WA_DeleteOnClose, true);

View file

@ -74,7 +74,7 @@ private slots:
void chatNewMessage(ChatWidget*); void chatNewMessage(ChatWidget*);
protected: protected:
explicit ChatDialog(QWidget *parent = 0, Qt::WFlags flags = 0); explicit ChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0);
virtual ~ChatDialog(); virtual ~ChatDialog();
void closeEvent(QCloseEvent *event); void closeEvent(QCloseEvent *event);

View file

@ -46,7 +46,7 @@
#define COLUMN_COUNT 3 #define COLUMN_COUNT 3
/** Default constructor */ /** Default constructor */
ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::WFlags flags) ChatLobbyDialog::ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent, Qt::WindowFlags flags)
: ChatDialog(parent, flags), lobbyId(lid) : ChatDialog(parent, flags), lobbyId(lid)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -60,7 +60,7 @@ signals:
protected: protected:
/** Default constructor */ /** Default constructor */
ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent = 0, Qt::WFlags flags = 0); ChatLobbyDialog(const ChatLobbyId& lid, QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
virtual ~ChatLobbyDialog(); virtual ~ChatLobbyDialog();

View file

@ -310,12 +310,12 @@ QString ChatStyle::formatMessage(enumFormatMessage type, const QString &name, co
// Calculate color from the name // Calculate color from the name
// uint hash = 0x73ffe23a; // uint hash = 0x73ffe23a;
// for (int i = 0; i < name.length(); ++i) { // for (int i = 0; i < name.length(); ++i) {
// hash = (hash ^ 0x28594888) + ((uint32_t) name[i].toAscii() << (i % 4)); // hash = (hash ^ 0x28594888) + ((uint32_t) name[i].toLatin1() << (i % 4));
// } // }
uint hash = 0; uint hash = 0;
for (int i = 0; i < name.length(); ++i) { for (int i = 0; i < name.length(); ++i) {
hash = (((hash << 1) + (hash >> 14)) ^ ((int) name[i].toAscii())) & 0x3fff; hash = (((hash << 1) + (hash >> 14)) ^ ((int) name[i].toLatin1())) & 0x3fff;
} }
color.setHsv(hash, 255, 150); color.setHsv(hash, 255, 150);

View file

@ -1027,7 +1027,7 @@ void ChatWidget::updatePeersCustomStateString(const QString& peer_id, const QStr
void ChatWidget::updateStatusString(const QString &statusMask, const QString &statusString) void ChatWidget::updateStatusString(const QString &statusMask, const QString &statusString)
{ {
ui->statusLabel->setText(QString(statusMask).arg(tr(statusString.toAscii()))); // displays info for 5 secs. ui->statusLabel->setText(QString(statusMask).arg(tr(statusString.toLatin1()))); // displays info for 5 secs.
ui->typingpixmapLabel->setPixmap(QPixmap(":images/typing.png") ); ui->typingpixmapLabel->setPixmap(QPixmap(":images/typing.png") );
if (statusString == "is typing...") { if (statusString == "is typing...") {

View file

@ -38,7 +38,7 @@
#define WINDOW(This) dynamic_cast<PopupChatWindow*>(This->window()) #define WINDOW(This) dynamic_cast<PopupChatWindow*>(This->window())
/** Default constructor */ /** Default constructor */
PopupChatDialog::PopupChatDialog(QWidget *parent, Qt::WFlags flags) PopupChatDialog::PopupChatDialog(QWidget *parent, Qt::WindowFlags flags)
: ChatDialog(parent, flags) : ChatDialog(parent, flags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -42,7 +42,7 @@ private slots:
protected: protected:
/** Default constructor */ /** Default constructor */
PopupChatDialog(QWidget *parent = 0, Qt::WFlags flags = 0); PopupChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
virtual ~PopupChatDialog(); virtual ~PopupChatDialog();

View file

@ -63,7 +63,7 @@ static PopupChatWindow *instance = NULL;
} }
/** Default constructor */ /** Default constructor */
PopupChatWindow::PopupChatWindow(bool tabbed, QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags) PopupChatWindow::PopupChatWindow(bool tabbed, QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */
ui.setupUi(this); ui.setupUi(this);

View file

@ -45,7 +45,7 @@ public:
protected: protected:
/** Default constructor */ /** Default constructor */
PopupChatWindow(bool tabbed, QWidget *parent = 0, Qt::WFlags flags = 0); PopupChatWindow(bool tabbed, QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
~PopupChatWindow(); ~PopupChatWindow();

View file

@ -39,7 +39,7 @@ PopupDistantChatDialog::~PopupDistantChatDialog()
delete _update_timer ; delete _update_timer ;
} }
PopupDistantChatDialog::PopupDistantChatDialog(QWidget *parent, Qt::WFlags flags) PopupDistantChatDialog::PopupDistantChatDialog(QWidget *parent, Qt::WindowFlags flags)
: PopupChatDialog(parent,flags) : PopupChatDialog(parent,flags)
{ {
_status_label = new QLabel ; _status_label = new QLabel ;

View file

@ -35,7 +35,7 @@ class PopupDistantChatDialog: public PopupChatDialog
protected: protected:
/** Default constructor */ /** Default constructor */
PopupDistantChatDialog(QWidget *parent = 0, Qt::WFlags flags = 0); PopupDistantChatDialog(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
virtual ~PopupDistantChatDialog(); virtual ~PopupDistantChatDialog();

View file

@ -32,7 +32,7 @@
/** Default constructor. */ /** Default constructor. */
RWindow::RWindow(QString name, QWidget *parent, Qt::WFlags flags) RWindow::RWindow(QString name, QWidget *parent, Qt::WindowFlags flags)
: QMainWindow(parent, flags) : QMainWindow(parent, flags)
{ {
_name = name; _name = name;

View file

@ -37,7 +37,7 @@ class RWindow : public QMainWindow
public: public:
/** Default constructor. */ /** Default constructor. */
RWindow(QString name, QWidget *parent = 0, Qt::WFlags flags = 0); RWindow(QString name, QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Destructor. */ /** Destructor. */
~RWindow(); ~RWindow();

View file

@ -59,7 +59,7 @@ ConfCertDialog *ConfCertDialog::instance(const std::string& peer_id)
} }
/** Default constructor */ /** Default constructor */
ConfCertDialog::ConfCertDialog(const std::string& id, QWidget *parent, Qt::WFlags flags) ConfCertDialog::ConfCertDialog(const std::string& id, QWidget *parent, Qt::WindowFlags flags)
: QDialog(parent, flags), mId(id) : QDialog(parent, flags), mId(id)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -42,7 +42,7 @@ signals:
private: private:
/** Default constructor */ /** Default constructor */
ConfCertDialog(const std::string& id, QWidget *parent = 0, Qt::WFlags flags = 0); ConfCertDialog(const std::string& id, QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
~ConfCertDialog(); ~ConfCertDialog();

View file

@ -54,7 +54,7 @@ ConnectProgressDialog *ConnectProgressDialog::instance(const std::string& peer_i
return d; return d;
} }
ConnectProgressDialog::ConnectProgressDialog(const std::string& id, QWidget *parent, Qt::WFlags flags) ConnectProgressDialog::ConnectProgressDialog(const std::string& id, QWidget *parent, Qt::WindowFlags flags)
:QDialog(parent, flags), mId(id), ui(new Ui::ConnectProgressDialog) :QDialog(parent, flags), mId(id), ui(new Ui::ConnectProgressDialog)
{ {
ui->setupUi(this); ui->setupUi(this);

View file

@ -38,7 +38,7 @@ public:
static void showProgress(const std::string& id); static void showProgress(const std::string& id);
private: private:
ConnectProgressDialog(const std::string& id, QWidget *parent = 0, Qt::WFlags flags = 0); ConnectProgressDialog(const std::string& id, QWidget *parent = 0, Qt::WindowFlags flags = 0);
~ConnectProgressDialog(); ~ConnectProgressDialog();
static ConnectProgressDialog *instance(const std::string& peer_id); static ConnectProgressDialog *instance(const std::string& peer_id);

View file

@ -43,7 +43,7 @@
#define GRAPHWIDGET_H #define GRAPHWIDGET_H
#include <map> #include <map>
#include <QtGui/QGraphicsView> #include <QGraphicsView>
#include <stdint.h> #include <stdint.h>
class Node; class Node;

View file

@ -111,7 +111,7 @@ public:
}; };
/** Constructor */ /** Constructor */
MessageComposer::MessageComposer(QWidget *parent, Qt::WFlags flags) MessageComposer::MessageComposer(QWidget *parent, Qt::WindowFlags flags)
: QMainWindow(parent, flags) : QMainWindow(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -45,7 +45,7 @@ public:
public: public:
/** Default Constructor */ /** Default Constructor */
MessageComposer(QWidget *parent = 0, Qt::WFlags flags = 0); MessageComposer(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~MessageComposer(); ~MessageComposer();
static void msgFriend(const std::string &id, bool group); static void msgFriend(const std::string &id, bool group);

View file

@ -117,7 +117,7 @@ MessageWidget *MessageWidget::openMsg(const std::string &msgId, bool window)
} }
/** Constructor */ /** Constructor */
MessageWidget::MessageWidget(bool controlled, QWidget *parent, Qt::WFlags flags) MessageWidget::MessageWidget(bool controlled, QWidget *parent, Qt::WindowFlags flags)
: QWidget(parent, flags) : QWidget(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -45,7 +45,7 @@ public:
}; };
public: public:
MessageWidget(bool controlled, QWidget *parent = 0, Qt::WFlags flags = 0); MessageWidget(bool controlled, QWidget *parent = 0, Qt::WindowFlags flags = 0);
~MessageWidget(); ~MessageWidget();
static MessageWidget *openMsg(const std::string &msgId, bool window); static MessageWidget *openMsg(const std::string &msgId, bool window);

View file

@ -28,7 +28,7 @@
#include <retroshare/rsmsgs.h> #include <retroshare/rsmsgs.h>
/** Constructor */ /** Constructor */
MessageWindow::MessageWindow(QWidget *parent, Qt::WFlags flags) MessageWindow::MessageWindow(QWidget *parent, Qt::WindowFlags flags)
: RWindow("MessageWindow", parent, flags) : RWindow("MessageWindow", parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -34,7 +34,7 @@ class MessageWindow : public RWindow
public: public:
/** Default Constructor */ /** Default Constructor */
MessageWindow(QWidget *parent = 0, Qt::WFlags flags = 0); MessageWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~MessageWindow(); ~MessageWindow();
void addWidget(MessageWidget *widget); void addWidget(MessageWidget *widget);

View file

@ -35,7 +35,7 @@
#include <QDateTime> #include <QDateTime>
/** Default constructor */ /** Default constructor */
ProfileWidget::ProfileWidget(QWidget *parent, Qt::WFlags flags) ProfileWidget::ProfileWidget(QWidget *parent, Qt::WindowFlags flags)
: QWidget(parent, flags) : QWidget(parent, flags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -33,7 +33,7 @@ class ProfileWidget : public QWidget
public: public:
/** Default constructor */ /** Default constructor */
ProfileWidget(QWidget *parent = 0, Qt::WFlags flags = 0); ProfileWidget(QWidget *parent = 0, Qt::WindowFlags flags = 0);
private slots: private slots:
void showEvent ( QShowEvent * event ); void showEvent ( QShowEvent * event );

View file

@ -29,7 +29,7 @@
#include "rsharesettings.h" #include "rsharesettings.h"
/** Constructor */ /** Constructor */
AppearancePage::AppearancePage(QWidget * parent, Qt::WFlags flags) AppearancePage::AppearancePage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -31,7 +31,7 @@ class AppearancePage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
AppearancePage(QWidget * parent = 0, Qt::WFlags flags = 0); AppearancePage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Saves the changes on this page */ /** Saves the changes on this page */
virtual bool save(QString &errmsg); virtual bool save(QString &errmsg);

View file

@ -94,7 +94,7 @@ static QString loadStyleInfo(ChatStyle::enumStyleType type, QListWidget *listWid
} }
/** Constructor */ /** Constructor */
ChatPage::ChatPage(QWidget * parent, Qt::WFlags flags) ChatPage::ChatPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -31,7 +31,7 @@ class ChatPage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
ChatPage(QWidget * parent = 0, Qt::WFlags flags = 0); ChatPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~ChatPage() {} ~ChatPage() {}

View file

@ -37,7 +37,7 @@
#include <retroshare/rsdisc.h> //for rsPeers variable #include <retroshare/rsdisc.h> //for rsPeers variable
/** Constructor */ /** Constructor */
CryptoPage::CryptoPage(QWidget * parent, Qt::WFlags flags) CryptoPage::CryptoPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -31,7 +31,7 @@ class CryptoPage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
CryptoPage(QWidget * parent = 0, Qt::WFlags flags = 0); CryptoPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~CryptoPage(); ~CryptoPage();

View file

@ -28,7 +28,7 @@
#include <algorithm> #include <algorithm>
DirectoriesPage::DirectoriesPage(QWidget * parent, Qt::WFlags flags) DirectoriesPage::DirectoriesPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
ui.setupUi(this); ui.setupUi(this);

View file

@ -30,7 +30,7 @@ class DirectoriesPage: public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
DirectoriesPage(QWidget * parent = 0, Qt::WFlags flags = 0); DirectoriesPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Saves the changes on this page */ /** Saves the changes on this page */
virtual bool save(QString &errmsg); virtual bool save(QString &errmsg);

View file

@ -53,7 +53,7 @@
//============================================================================ //============================================================================
FileAssociationsPage::FileAssociationsPage(QWidget * parent, Qt::WFlags flags) FileAssociationsPage::FileAssociationsPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
//:QFrame() //:QFrame()
{ {

View file

@ -48,7 +48,7 @@ class FileAssociationsPage : public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
FileAssociationsPage(QWidget * parent = 0, Qt::WFlags flags = 0); FileAssociationsPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
virtual ~FileAssociationsPage(); virtual ~FileAssociationsPage();
virtual void load(); virtual void load();

View file

@ -26,7 +26,7 @@
#include "../MainWindow.h" #include "../MainWindow.h"
#include "../ForumsDialog.h" #include "../ForumsDialog.h"
ForumPage::ForumPage(QWidget * parent, Qt::WFlags flags) ForumPage::ForumPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
ui.setupUi(this); ui.setupUi(this);

View file

@ -30,7 +30,7 @@ class ForumPage : public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
ForumPage(QWidget * parent = 0, Qt::WFlags flags = 0); ForumPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~ForumPage(); ~ForumPage();
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -32,7 +32,7 @@
#include <gui/QuickStartWizard.h> #include <gui/QuickStartWizard.h>
/** Constructor */ /** Constructor */
GeneralPage::GeneralPage(QWidget * parent, Qt::WFlags flags) GeneralPage::GeneralPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -32,7 +32,7 @@ class GeneralPage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
GeneralPage(QWidget * parent = 0, Qt::WFlags flags = 0); GeneralPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~GeneralPage(); ~GeneralPage();

View file

@ -28,7 +28,7 @@
#include <algorithm> #include <algorithm>
#include "NewTag.h" #include "NewTag.h"
MessagePage::MessagePage(QWidget * parent, Qt::WFlags flags) MessagePage::MessagePage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
ui.setupUi(this); ui.setupUi(this);

View file

@ -34,7 +34,7 @@ class MessagePage : public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
MessagePage(QWidget * parent = 0, Qt::WFlags flags = 0); MessagePage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~MessagePage(); ~MessagePage();
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -22,7 +22,7 @@
#include "NetworkPage.h" #include "NetworkPage.h"
#include "rshare.h" #include "rshare.h"
NetworkPage::NetworkPage(QWidget * parent, Qt::WFlags flags) NetworkPage::NetworkPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
ui.setupUi(this); ui.setupUi(this);

View file

@ -28,7 +28,7 @@
class NetworkPage : public ConfigPage class NetworkPage : public ConfigPage
{ {
public: public:
NetworkPage(QWidget * parent = 0, Qt::WFlags flags = 0); NetworkPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~NetworkPage() {} ~NetworkPage() {}
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -25,7 +25,7 @@
#include <QColorDialog> #include <QColorDialog>
/** Default constructor */ /** Default constructor */
NewTag::NewTag(MsgTagType &Tags, uint32_t nId /* = 0*/, QWidget *parent, Qt::WFlags flags) NewTag::NewTag(MsgTagType &Tags, uint32_t nId /* = 0*/, QWidget *parent, Qt::WindowFlags flags)
: QDialog(parent, flags), m_Tags(Tags) : QDialog(parent, flags), m_Tags(Tags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -36,7 +36,7 @@ class NewTag : public QDialog
public: public:
/** Default constructor */ /** Default constructor */
NewTag(MsgTagType &Tags, uint32_t nId = 0, QWidget *parent = 0, Qt::WFlags flags = 0); NewTag(MsgTagType &Tags, uint32_t nId = 0, QWidget *parent = 0, Qt::WindowFlags flags = 0);
uint32_t m_nId; uint32_t m_nId;

View file

@ -33,7 +33,7 @@
#include "gui/NewsFeed.h" #include "gui/NewsFeed.h"
/** Constructor */ /** Constructor */
NotifyPage::NotifyPage(QWidget * parent, Qt::WFlags flags) NotifyPage::NotifyPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -58,7 +58,7 @@ class NotifyPage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
NotifyPage(QWidget *parent = 0, Qt::WFlags flags = 0); NotifyPage(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~NotifyPage(); ~NotifyPage();

View file

@ -32,7 +32,7 @@
#include "../MainWindow.h" #include "../MainWindow.h"
PluginsPage::PluginsPage(QWidget * parent, Qt::WFlags flags) PluginsPage::PluginsPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
ui.setupUi(this); ui.setupUi(this);

View file

@ -29,7 +29,7 @@ class PluginsPage : public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
PluginsPage(QWidget * parent = 0, Qt::WFlags flags = 0); PluginsPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~PluginsPage(); ~PluginsPage();
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -32,7 +32,7 @@
#include <QTimer> #include <QTimer>
RelayPage::RelayPage(QWidget * parent, Qt::WFlags flags) RelayPage::RelayPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -22,7 +22,7 @@
#ifndef RELAYPAGE_H #ifndef RELAYPAGE_H
#define RELAYPAGE_H #define RELAYPAGE_H
# include <QtGui/QWidget> # include <QWidget>
#include <retroshare-gui/configpage.h> #include <retroshare-gui/configpage.h>
#include "ui_RelayPage.h" #include "ui_RelayPage.h"
@ -32,7 +32,7 @@ class RelayPage: public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
RelayPage(QWidget * parent = 0, Qt::WFlags flags = 0); RelayPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~RelayPage() {} ~RelayPage() {}
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -34,7 +34,7 @@
#include <QTimer> #include <QTimer>
ServerPage::ServerPage(QWidget * parent, Qt::WFlags flags) ServerPage::ServerPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -32,7 +32,7 @@ class ServerPage: public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
ServerPage(QWidget * parent = 0, Qt::WFlags flags = 0); ServerPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~ServerPage() {} ~ServerPage() {}
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -36,7 +36,7 @@
#define TYPE_ITEM 1 #define TYPE_ITEM 1
/** Constructor */ /** Constructor */
SoundPage::SoundPage(QWidget * parent, Qt::WFlags flags) SoundPage::SoundPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -34,7 +34,7 @@ class SoundPage : public ConfigPage
public: public:
/** Default Constructor */ /** Default Constructor */
SoundPage(QWidget * parent = 0, Qt::WFlags flags = 0); SoundPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
~SoundPage(); ~SoundPage();

View file

@ -29,7 +29,7 @@
#include <retroshare/rsfiles.h> #include <retroshare/rsfiles.h>
#include <retroshare/rspeers.h> #include <retroshare/rspeers.h>
TransferPage::TransferPage(QWidget * parent, Qt::WFlags flags) TransferPage::TransferPage(QWidget * parent, Qt::WindowFlags flags)
: ConfigPage(parent, flags) : ConfigPage(parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -22,7 +22,7 @@
#ifndef TRANSFERPAGE_H #ifndef TRANSFERPAGE_H
# define TRANSFERPAGE_H # define TRANSFERPAGE_H
# include <QtGui/QWidget> # include <QWidget>
#include <retroshare-gui/configpage.h> #include <retroshare-gui/configpage.h>
#include "ui_TransferPage.h" #include "ui_TransferPage.h"
@ -32,7 +32,7 @@ class TransferPage: public ConfigPage
Q_OBJECT Q_OBJECT
public: public:
TransferPage(QWidget * parent = 0, Qt::WFlags flags = 0); TransferPage(QWidget * parent = 0, Qt::WindowFlags flags = 0);
~TransferPage() {} ~TransferPage() {}
/** Saves the changes on this page */ /** Saves the changes on this page */

View file

@ -22,7 +22,7 @@
#ifndef RSETTINGSWIN_HPP_ #ifndef RSETTINGSWIN_HPP_
#define RSETTINGSWIN_HPP_ #define RSETTINGSWIN_HPP_
#include <QtGui/QDialog> #include <QDialog>
#include <retroshare-gui/configpage.h> #include <retroshare-gui/configpage.h>
#include "ui_settings.h" #include "ui_settings.h"

View file

@ -68,7 +68,7 @@
/** Constructor */ /** Constructor */
ApplicationWindow::ApplicationWindow(QWidget* parent, Qt::WFlags flags) ApplicationWindow::ApplicationWindow(QWidget* parent, Qt::WindowFlags flags)
: QMainWindow(parent, flags) : QMainWindow(parent, flags)
{ {
/* Invoke the Qt Designer generated QObject setup routine */ /* Invoke the Qt Designer generated QObject setup routine */

View file

@ -33,7 +33,7 @@ class ApplicationWindow : public QMainWindow
public: public:
/** Default Constructor */ /** Default Constructor */
ApplicationWindow(QWidget *parent = 0, Qt::WFlags flags = 0); ApplicationWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Destructor. */ /** Destructor. */
~ApplicationWindow(); ~ApplicationWindow();

View file

@ -34,7 +34,7 @@
/** Default constructor */ /** Default constructor */
BlogDetails::BlogDetails(QWidget *parent, Qt::WFlags flags) BlogDetails::BlogDetails(QWidget *parent, Qt::WindowFlags flags)
: QDialog(parent, flags) : QDialog(parent, flags)
{ {
/* Invoke Qt Designer generated QObject setup routine */ /* Invoke Qt Designer generated QObject setup routine */

View file

@ -33,7 +33,7 @@ class BlogDetails : public QDialog
public: public:
/** Default constructor */ /** Default constructor */
BlogDetails(QWidget *parent = 0, Qt::WFlags flags = 0); BlogDetails(QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default destructor */ /** Default destructor */
void showDetails(std::string mChannelId); void showDetails(std::string mChannelId);

View file

@ -40,7 +40,7 @@
#include <retroshare/rsblogs.h> #include <retroshare/rsblogs.h>
/** Constructor */ /** Constructor */
CreateBlogMsg::CreateBlogMsg(std::string cId ,QWidget* parent, Qt::WFlags flags) CreateBlogMsg::CreateBlogMsg(std::string cId ,QWidget* parent, Qt::WindowFlags flags)
: mBlogId(cId), QMainWindow (parent, flags) : mBlogId(cId), QMainWindow (parent, flags)
{ {
/* Invoke the Qt Designer generated object setup routine */ /* Invoke the Qt Designer generated object setup routine */

View file

@ -43,7 +43,7 @@ class CreateBlogMsg : public QMainWindow
public: public:
/** Default Constructor */ /** Default Constructor */
CreateBlogMsg(std::string cId, QWidget *parent = 0, Qt::WFlags flags = 0); CreateBlogMsg(std::string cId, QWidget *parent = 0, Qt::WindowFlags flags = 0);
/** Default Destructor */ /** Default Destructor */
void addAttachment(std::string path); void addAttachment(std::string path);

View file

@ -29,7 +29,7 @@ class ConfigPage : public QWidget
{ {
public: public:
/** Default Constructor */ /** Default Constructor */
ConfigPage(QWidget *parent = 0, Qt::WFlags flags = 0) : QWidget(parent, flags), loaded(false) {} ConfigPage(QWidget *parent = 0, Qt::WindowFlags flags = 0) : QWidget(parent, flags), loaded(false) {}
/** Pure virtual method. Subclassed pages load their config settings here. */ /** Pure virtual method. Subclassed pages load their config settings here. */
virtual void load() = 0; virtual void load() = 0;

View file

@ -21,7 +21,7 @@
#include <util/EventFilter.h> #include <util/EventFilter.h>
#include <QtCore/QEvent> #include <QEvent>
EventFilter::EventFilter(QObject * receiver, const char * member) EventFilter::EventFilter(QObject * receiver, const char * member)
: QObject() { : QObject() {

View file

@ -26,7 +26,7 @@
#include <util/NonCopyable.h> #include <util/NonCopyable.h>
#include <QtCore/QObject> #include <QObject>
class QEvent; class QEvent;

View file

@ -740,7 +740,7 @@ bool RsHtml::makeEmbeddedImage(const QString &fileName, QString &embeddedImage,
QImage image; QImage image;
if (image.load (fileName) == false) { if (image.load (fileName) == false) {
fprintf (stderr, "RsHtml::makeEmbeddedImage() - image \"%s\" can't be load", fileName.toAscii().constData()); fprintf (stderr, "RsHtml::makeEmbeddedImage() - image \"%s\" can't be load", fileName.toLatin1().constData());
return false; return false;
} }
return RsHtml::makeEmbeddedImage(image, embeddedImage, maxPixels); return RsHtml::makeEmbeddedImage(image, embeddedImage, maxPixels);

View file

@ -21,8 +21,8 @@
#include <util/MouseEventFilter.h> #include <util/MouseEventFilter.h>
#include <QtCore/QEvent> #include <QEvent>
#include <QtGui/QMouseEvent> #include <QMouseEvent>
#include <exception> #include <exception>
#include <typeinfo> #include <typeinfo>

View file

@ -21,7 +21,7 @@
#include <util/RetroStyleLabel.h> #include <util/RetroStyleLabel.h>
#include <QtGui/QtGui> #include <QtGui>
RetroStyleLabel::RetroStyleLabel(QWidget * parent, Mode mode, Qt::AlignmentFlag hAlign) RetroStyleLabel::RetroStyleLabel(QWidget * parent, Mode mode, Qt::AlignmentFlag hAlign)
: QLabel(parent), _mode(mode) { : QLabel(parent), _mode(mode) {

View file

@ -24,9 +24,9 @@
#include <util/rsqtutildll.h> #include <util/rsqtutildll.h>
#include <QtGui/QLabel> #include <QLabel>
#include <QtGui/QPixmap> #include <QPixmap>
#include <QtGui/QColor> #include <QColor>
class RSQTUTIL_API RetroStyleLabel : public QLabel { class RSQTUTIL_API RetroStyleLabel : public QLabel {

View file

@ -21,7 +21,7 @@
#include <util/Widget.h> #include <util/Widget.h>
#include <QtGui/QtGui> #include <QtGui>
QGridLayout * Widget::createLayout(QWidget * parent) { QGridLayout * Widget::createLayout(QWidget * parent) {
QGridLayout * layout = new QGridLayout(parent); QGridLayout * layout = new QGridLayout(parent);

View file

@ -21,11 +21,11 @@
#include <util/WidgetBackgroundImage.h> #include <util/WidgetBackgroundImage.h>
#include <QtCore/QString> #include <QString>
#include <QtGui/QWidget> #include <QWidget>
#include <QtGui/QPixmap> #include <QPixmap>
#include <QtGui/QPalette> #include <QPalette>
#include <QtGui/QBrush> #include <QBrush>
void WidgetBackgroundImage::setBackgroundImage(QWidget * widget, const char * imageFile, WidgetBackgroundImage::AdjustMode adjustMode) { void WidgetBackgroundImage::setBackgroundImage(QWidget * widget, const char * imageFile, WidgetBackgroundImage::AdjustMode adjustMode) {
widget->setAutoFillBackground(true); widget->setAutoFillBackground(true);

Some files were not shown because too many files have changed in this diff Show more