~ubuntu-branches/ubuntu/hardy/smplayer/hardy

« back to all changes in this revision

Viewing changes to src/mytable.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Breuil Cyril
  • Date: 2007-06-24 16:35:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070624163529-hhckbmd24uicada7
Tags: 0.5.20-0ubuntu1
* New upstream release
* Change Maintainer Email

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "mytable.h"
 
3
 
 
4
MyTable::MyTable( QWidget * parent, const char * name )
 
5
        : QTable(parent, name) 
 
6
{
 
7
        size_hint = QSize(0,0);
 
8
}
 
9
 
 
10
MyTable::MyTable(int numRows, int numCols, QWidget * parent, const char * name)
 
11
        : QTable(numRows, numCols, parent, name)
 
12
{
 
13
        size_hint = QSize(0,0);
 
14
}
 
15
 
 
16
void MyTable::setSizeHint(QSize s) {
 
17
        size_hint = s;
 
18
}
 
19
 
 
20
QSize MyTable::sizeHint() const {
 
21
        if (size_hint == QSize(0,0))
 
22
                return QTable::sizeHint();
 
23
        else
 
24
                return size_hint;
 
25
}
 
26