~ubuntu-branches/ubuntu/wily/smplayer/wily

« back to all changes in this revision

Viewing changes to src/prefassociations.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-11-04 12:45:38 UTC
  • mto: (1.1.10 upstream) (3.1.3 squeeze)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20091104124538-i5ntu42ni0e1njnv
ImportĀ upstreamĀ versionĀ 0.6.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        connect(listWidget, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(listItemClicked(QListWidgetItem*))); 
44
44
        connect(listWidget, SIGNAL(itemPressed(QListWidgetItem*)), this, SLOT(listItemPressed(QListWidgetItem*))); 
45
45
 
46
 
#ifdef Q_OS_WIN
47
 
        if (QSysInfo::WindowsVersion == QSysInfo::WV_VISTA)
 
46
        if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA)
48
47
        {
49
48
                //Hide Select None - One cannot restore an association in Vista. Go figure.
50
49
                selectNone->hide(); 
52
51
                //hboxLayout->addWidget(lpbButton); 
53
52
                //connect(lpbButton, SIGNAL(clicked(bool)), this, SLOT(launchAppDefaults()));
54
53
        }
55
 
#endif
56
54
 
57
55
        Extensions e;
58
56
        for (int n=0; n < e.multimedia().count(); n++) {
132
130
                                pItem->setCheckState(Qt::Checked);
133
131
                                //Don't allow de-selection in windows VISTA if extension is registered.
134
132
                                //VISTA doesn't seem to support extension 'restoration' in the API.
135
 
#ifdef Q_OS_WIN
136
 
                                if (QSysInfo::WindowsVersion == QSysInfo::WV_VISTA) {
 
133
                                if (QSysInfo::WindowsVersion >= QSysInfo::WV_VISTA) {
137
134
                                        pItem->setFlags(0);
138
135
                                }
139
 
#endif
140
136
                        }
141
137
                        else
142
138
                        {