summaryrefslogtreecommitdiffstats
path: root/src/tabwidget.h
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-14 22:24:28 +0200
committerMavridis Philippe <[email protected]>2021-01-14 22:24:28 +0200
commit100a93b70a62694b99081cd9c2687ab885c00305 (patch)
tree44eba9ecbbfa8ab797ddcc60ee6917225afdeadf /src/tabwidget.h
parentd5e986620ca1379988aed5c701253516c263904b (diff)
downloadklamav-100a93b70a62694b99081cd9c2687ab885c00305.tar.gz
klamav-100a93b70a62694b99081cd9c2687ab885c00305.zip
Implement fixed tabs.
Fixed tabs are tabs that cannot be closed by the user. Examples of such tabs are thwe first (main) tab in the Virus Browser and the Scanner and some essential tabs in the main window. Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/tabwidget.h')
-rw-r--r--src/tabwidget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabwidget.h b/src/tabwidget.h
index 1e2490b..ffedfb8 100644
--- a/src/tabwidget.h
+++ b/src/tabwidget.h
@@ -13,6 +13,7 @@
#include <ktabwidget.h>
#include <tqptrdict.h>
+#include <tqstringlist.h>
namespace KlamAV
{
@@ -22,7 +23,7 @@ class TabWidget:public KTabWidget
Q_OBJECT
public:
- TabWidget(TQWidget * parent = 0, const char *name = 0);
+ TabWidget(TQWidget * parent = 0, const char *name = 0, TQStringList fixedTabs = 0);
~TabWidget();
void addFrame(Frame *f);
Frame *currentFrame();
@@ -55,6 +56,7 @@ class TabWidget:public KTabWidget
unsigned int m_CurrentMaxLength;
int currentItemId;
TQWidget* currentItem;
+ TQStringList fixedTabs;
};
}