diff options
author | sr55 <[email protected]> | 2011-06-20 14:48:07 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-06-20 14:48:07 +0000 |
commit | 2625067e6983ff27d139352178662926020d37d3 (patch) | |
tree | 0c5109b384e207a24f58c1fbbf38fbf4131f3964 /qt4/encodewidget.cpp | |
parent | e0c8edc314676abedea13620f017f43e01788077 (diff) |
Remove the qt4 directory. Nothing useful has come from this code and too much time has passed with no-one dedicating the time it requires to be useful.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4066 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'qt4/encodewidget.cpp')
-rw-r--r-- | qt4/encodewidget.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/qt4/encodewidget.cpp b/qt4/encodewidget.cpp deleted file mode 100644 index af22b80e5..000000000 --- a/qt4/encodewidget.cpp +++ /dev/null @@ -1,39 +0,0 @@ -#include <QtGui> - -#include "encodewidget.h" - -EncodeWidget::EncodeWidget(QWidget *parent) - : QWidget(parent) -{ - setupUi(this); - - convertButton->setDisabled( true ); - - connect(convertButton, SIGNAL(clicked()), this, SIGNAL(convert())); -} - -void EncodeWidget::setModel( QStandardItemModel *m ) -{ - titleTree->setModel( m ); - titleTree->setSelectionMode( QAbstractItemView::NoSelection ); - titleTree->setRootIsDecorated( false ); - titleTree->setFocusPolicy( Qt::NoFocus ); - - connect(titleTree->model(), SIGNAL(dataChanged(const QModelIndex &, const QModelIndex &)), SLOT(changed())); -} - -void EncodeWidget::changed() -{ - bool enable = false; - - for( int row = 0; row < titleTree->model()->rowCount(); ++row ) - { - QStandardItem *si = qobject_cast<QStandardItemModel *>(titleTree->model())->item( row, 0 ); - if( si->checkState() == Qt::Checked ) - { - enable = true; - } - } - - convertButton->setEnabled( enable ); -} |