Changeset 124 for smplayer/trunk/src/prefassociations.cpp
- Timestamp:
- Mar 16, 2012, 4:02:47 PM (13 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 121-122
- Property svn:mergeinfo changed
-
smplayer/trunk/src/prefassociations.cpp
r119 r124 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 1 Ricardo Villalba <rvm@escomposlinux.org>2 Copyright (C) 2006-2012 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 62 62 } 63 63 retranslateStrings(); 64 65 something_changed = false; 64 66 } 65 67 … … 74 76 listWidget->item(k)->setCheckState(Qt::Checked); 75 77 listWidget->setFocus(); 78 79 something_changed = true; 76 80 } 77 81 … … 82 86 listWidget->item(k)->setCheckState(Qt::Unchecked); 83 87 listWidget->setFocus(); 88 89 something_changed = true; 84 90 } 85 91 86 92 void PrefAssociations::listItemClicked(QListWidgetItem* item) 87 93 { 94 qDebug("PrefAssociations::listItemClicked"); 95 88 96 if (!(item->flags() & Qt::ItemIsEnabled)) 89 97 return; … … 101 109 102 110 //else - clicked on the checkbox itself, do nothing 111 112 something_changed = true; 103 113 } 104 114 … … 168 178 void PrefAssociations::getData(Preferences *) 169 179 { 180 qDebug("PrefAssociations::getData: something_changed: %d", something_changed); 181 if (!something_changed) return; 182 170 183 QStringList extensions; 171 184 … … 187 200 188 201 refreshList(); //Useless when OK is pressed... How to detect if apply or ok is pressed ? 202 203 something_changed = false; 189 204 } 190 205 … … 194 209 195 210 QPixmap PrefAssociations::sectionIcon() { 196 return Images::icon("pref_associations" );211 return Images::icon("pref_associations", 22); 197 212 } 198 213
Note:
See TracChangeset
for help on using the changeset viewer.