summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 17:32:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 17:32:44 -0600
commit4ed8d784e29102ed1659f4ccf71fcc6fb0dad5c8 (patch)
tree77ffb6958f510602a2bb01588b3172b28d81dd20 /filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h
parent903aacf3fda692b6fa7e7934ea158653b99cc6a5 (diff)
downloadtdenetwork-4ed8d784e29102ed1659f4ccf71fcc6fb0dad5c8.tar.gz
tdenetwork-4ed8d784e29102ed1659f4ccf71fcc6fb0dad5c8.zip
Fix prior commit
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h')
-rw-r--r--filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h b/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h
new file mode 100644
index 00000000..b378e228
--- /dev/null
+++ b/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.h
@@ -0,0 +1,65 @@
+/***************************************************************************
+ qextendedchecklistitem.h - description
+ -------------------
+ begin : Sun Jan 26 2003
+ copyright : (C) 2003 by Jan Sch�fer
+ email : janschaefer@users.sourceforge.net
+ ***************************************************************************/
+
+/******************************************************************************
+ * *
+ * This file is part of KSambaPlugin. *
+ * *
+ * KSambaPlugin is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * KSambaPlugin is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with KSambaPlugin; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
+ * *
+ ******************************************************************************/
+
+#ifndef _TQMULTICHECKLISTITEM_H_
+#define _TQMULTICHECKLISTITEM_H_
+
+#include <tqlistview.h>
+
+#include <tqbitarray.h>
+
+class QMultiCheckListItem : public TQObject, public TQListViewItem {
+Q_OBJECT
+
+
+ public:
+ QMultiCheckListItem( TQListView *parent);
+ ~QMultiCheckListItem() {};
+
+ virtual bool isOn(int column);
+ virtual bool isDisabled(int column);
+
+
+ protected:
+ /* reimp */
+ virtual void paintCell(TQPainter *, const TQColorGroup &, int, int, int);
+
+ public slots:
+ virtual void setOn(int, bool);
+ virtual void toggle(int);
+ virtual void setDisabled(int, bool);
+
+ signals:
+ void stateChanged(int, bool);
+ private:
+ TQBitArray checkStates;
+ TQBitArray checkBoxColumns;
+ TQBitArray disableStates;
+};
+
+#endif