~ubuntu-branches/debian/stretch/smplayer/stretch

« back to all changes in this revision

Viewing changes to src/favorites.cpp

  • Committer: Package Import Robot
  • Author(s): Mateusz Łukasik
  • Date: 2014-04-21 11:53:59 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20140421115359-oz572avkq20ieqaf
Tags: 14.3.0-1
* Add myself to uploaders.
* New upstream release. (Closes: #740769, #742685)
* debian/control:
  - bump standards version to 3.9.5. (no changes needed)
  - rename smplayer-translations to smplayer-l10n. (Closes: #698365)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  smplayer, GUI front-end for mplayer.
2
 
    Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
 
2
    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
3
3
 
4
4
    This program is free software; you can redistribute it and/or modify
5
5
    it under the terms of the GNU General Public License as published by
369
369
        qDebug("Favorites::jump");
370
370
 
371
371
        bool ok;
 
372
        #if QT_VERSION >= 0x050000
 
373
        int item = QInputDialog::getInt(parent_widget, tr("Jump to item"),
 
374
                          tr("Enter the number of the item in the list to jump:"), 
 
375
                          last_item, 1, f_list.count(), 1, &ok);
 
376
        #else
372
377
        int item = QInputDialog::getInteger(parent_widget, tr("Jump to item"),
373
378
                          tr("Enter the number of the item in the list to jump:"), 
374
379
                          last_item, 1, f_list.count(), 1, &ok);
 
380
        #endif
375
381
        if (ok) {
376
382
                last_item = item;
377
383
                item--;