src/misc.cpp

changeset 25
256bb5c6b77f
parent 21
99225eac33ba
child 30
6b82f6a3ad53
equal deleted inserted replaced
24:61e2752dd7cd 25:256bb5c6b77f
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #include "misc.h" 19 #include "misc.h"
20 #include <QMessageBox>
20 21
21 EXTERN_CONFIG (List, devBuildNames) 22 EXTERN_CONFIG (List, devBuildNames)
22 EXTERN_CONFIG (List, releaseNames) 23 EXTERN_CONFIG (List, releaseNames)
23 EXTERN_CONFIG (Map, binaryPaths) 24 EXTERN_CONFIG (Map, binaryPaths)
24 25
59 if (lastpos != -1) 60 if (lastpos != -1)
60 return path.mid (lastpos + 1); 61 return path.mid (lastpos + 1);
61 62
62 return path; 63 return path;
63 } 64 }
65
66 // =============================================================================
67 // -----------------------------------------------------------------------------
68 bool confirm (str text) {
69 return QMessageBox::question (null, QObject::tr ("Confirm"), text,
70 QMessageBox::Yes | QMessageBox::No, QMessageBox::No) != QMessageBox::No;
71 }

mercurial