Commit 26b04602 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove unused windowflags

parent 1d387bc9
......@@ -57,8 +57,8 @@ BrowserInterface::BrowserInterface(MainWindow *shell, const char *name)
m_shell = shell;
}
MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags f)
: KParts::MainWindow(parent, f)
MainWindow::MainWindow(QWidget *parent)
: KParts::MainWindow(parent)
, m_browserIface(new BrowserInterface(this, "browser_interface"))
, m_part()
, m_statusLabel(new KSqueezedTextLabel(this))
......
......@@ -61,7 +61,7 @@ class MainWindow : public KParts::MainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = KDE_DEFAULT_WINDOWFLAGS);
explicit MainWindow(QWidget *parent = Q_NULLPTR);
~MainWindow();
/**
......
......@@ -71,8 +71,8 @@ public:
QPushButton *okButton;
};
AddEditBlog::AddEditBlog(int blog_id, QWidget *parent, Qt::WindowFlags flags)
: QDialog(parent, flags), d(new Private)
AddEditBlog::AddEditBlog(int blog_id, QWidget *parent)
: QDialog(parent), d(new Private)
{
qCDebug(BLOGILO_LOG);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -48,7 +48,7 @@ public:
* @param blog_id id of blog we will edit it, for adding a blog this should be "-1"
* @param parent Parent
*/
explicit AddEditBlog(int blog_id, QWidget *parent = Q_NULLPTR, Qt::WindowFlags flags = Q_NULLPTR);
explicit AddEditBlog(int blog_id, QWidget *parent = Q_NULLPTR);
~AddEditBlog();
protected Q_SLOTS:
......
......@@ -1169,7 +1169,7 @@ void KMPrintCommand::setPrintPreview(bool preview)
KMCommand::Result KMPrintCommand::execute()
{
// the window will be deleted after printout is performed, in KMReaderWin::slotPrintMsg()
KMReaderWin *printerWin = new KMReaderWin(Q_NULLPTR, kmkernel->mainWin(), Q_NULLPTR, Q_NULLPTR);
KMReaderWin *printerWin = new KMReaderWin(Q_NULLPTR, kmkernel->mainWin(), Q_NULLPTR);
printerWin->setPrinting(true);
printerWin->readConfig();
if (mHeaderStylePlugin) {
......
......@@ -1007,7 +1007,7 @@ void KMMainWidget::createWidgets()
// Create the reader window
//
if (mReaderWindowActive) {
mMsgView = new KMReaderWin(this, this, actionCollection(), Q_NULLPTR);
mMsgView = new KMReaderWin(this, this, actionCollection());
if (mMsgActions) {
mMsgActions->setMessageView(mMsgView);
}
......
......@@ -96,9 +96,8 @@ using namespace MailCommon;
KMReaderWin::KMReaderWin(QWidget *aParent,
QWidget *mainWindow,
KActionCollection *actionCollection,
Qt::WindowFlags aFlags)
: QWidget(aParent, aFlags),
KActionCollection *actionCollection)
: QWidget(aParent),
mMainWindow(mainWindow),
mActionCollection(actionCollection),
mMailToComposeAction(Q_NULLPTR),
......
......@@ -56,7 +56,7 @@ class KMAIL_EXPORT KMReaderWin: public QWidget
public:
explicit KMReaderWin(QWidget *parent, QWidget *mainWindow,
KActionCollection *actionCollection, Qt::WindowFlags f = Q_NULLPTR);
KActionCollection *actionCollection);
virtual ~KMReaderWin();
/** Read settings from app's config file. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment