~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/mythuitype.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-09-29 01:33:23 UTC
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: james.westby@ubuntu.com-20090929013323-e6d2b5bzpg4t3t3x
Tags: upstream-0.22.0~trunk22101
ImportĀ upstreamĀ versionĀ 0.22.0~trunk22101

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// Own header
 
3
#include "mythuitype.h"
 
4
 
 
5
// QT headers
1
6
#include <QEvent>
2
7
#include <QKeyEvent>
3
8
#include <QDomDocument>
4
9
 
 
10
// Mythdb headers
5
11
#include "mythverbose.h"
6
12
 
7
 
#include "mythuitype.h"
 
13
// MythUI headers
8
14
#include "mythimage.h"
9
15
#include "mythpainter.h"
10
16
#include "mythmainwindow.h"
15
21
#include "mythuicheckbox.h"
16
22
#include "mythuibuttonlist.h"
17
23
#include "mythuitextedit.h"
18
 
#include "mythuibuttonlist.h"
19
24
#include "mythuiprogressbar.h"
20
25
#include "mythuispinbox.h"
21
26
#include "mythuiwebbrowser.h"
22
27
 
23
28
MythUIType::MythUIType(QObject *parent, const QString &name)
24
 
    : QObject(parent), m_helptext(QString::null)
 
29
    : QObject(parent)
25
30
{
26
31
    setObjectName(name);
27
32
 
90
95
    if (children.isEmpty())
91
96
        return 0;
92
97
 
93
 
    bool onlyWidgets = (inheritsClass && qstrcmp(inheritsClass, "QWidget") == 0)
94
 
;
 
98
    bool onlyWidgets = (inheritsClass
 
99
                        && qstrcmp(inheritsClass, "QWidget") == 0);
95
100
    const QLatin1String oName(objName);
96
101
    for (int i = 0; i < children.size(); ++i)
97
102
    {