Commit d483dbeb authored by Laurent Montel's avatar Laurent Montel 😁

Port to QTabWidget

parent 7f0c5fcf
......@@ -51,7 +51,7 @@
#include "libkdepim/progresswidget/statusbarprogresswidget.h"
#include "libkdepim/progresswidget/progressstatusbarwidget.h"
#include <ktabwidget.h>
#include <qtabwidget.h>
#include <KStatusNotifierItem>
#include <qstatusbar.h>
#include <KToggleAction>
......@@ -514,7 +514,7 @@ void MainWindow::slotRemoveAllExclude(int pos)
}
}
DBMan::self()->removeTempEntry(*widget->currentPost());
tabPosts->removePage(widget);
tabPosts->removeTab(tabPosts->indexOf(widget));
widget->close();
}
if (tabPosts->count() < 1) {
......@@ -538,7 +538,7 @@ void MainWindow::slotRemovePostEntry(int pos)
}
}
DBMan::self()->removeTempEntry(*widget->currentPost());
tabPosts->removePage(widget);
tabPosts->removeTab(tabPosts->indexOf(widget));
widget->close();
if (tabPosts->count() < 1) {
......
......@@ -25,7 +25,7 @@
#include <QTabBar>
PostsTabWidget::PostsTabWidget(QWidget *parent)
: KTabWidget(parent)
: QTabWidget(parent)
{
setElideMode(Qt::ElideRight);
setTabsClosable(true);
......
......@@ -18,10 +18,10 @@
#ifndef POSTSTABWIDGET_H
#define POSTSTABWIDGET_H
#include <KTabWidget>
#include <QTabWidget>
class QToolButton;
class PostsTabWidget : public KTabWidget
class PostsTabWidget : public QTabWidget
{
Q_OBJECT
public:
......
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