~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/plugins/generic/screenshotplugin/pixmapwidget.cpp

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *
19
19
 */
20
20
 
21
 
#include <QtGui>
 
21
#include <QTextEdit>
 
22
#include <QVBoxLayout>
 
23
#include <QHBoxLayout>
 
24
#include <QPushButton>
 
25
#include <QStyle>
 
26
#include <QDialogButtonBox>
 
27
#include <QInputDialog>
 
28
#include <QApplication>
 
29
#include <QClipboard>
 
30
#include <QPainter>
 
31
#include <QMouseEvent>
 
32
#include <QMenu>
 
33
#include <QPrintDialog>
 
34
#include <QColorDialog>
 
35
#include <QFontDialog>
22
36
 
23
37
#include "pixmapwidget.h"
24
38
#include "options.h"
218
232
void PixmapWidget::setPixmap(const QPixmap& pix)
219
233
{
220
234
        mainPixmap = QPixmap();
221
 
        mainPixmap = pix;       
 
235
        mainPixmap = pix;
222
236
        setFixedSize(mainPixmap.size());
223
237
        selectionRect->clear();
224
238
        update();
311
325
        saveUndoPixmap();
312
326
        bool ok = false;
313
327
        int radius = Options::instance()->getOption(constRadius, 5).toInt();
314
 
        radius = QInputDialog::getInteger(this, tr("Input radius"), tr("Radius"), radius, 1, 100, 1, &ok);
 
328
        radius = QInputDialog::getInt(this, tr("Input radius"), tr("Radius"), radius, 1, 100, 1, &ok);
315
329
        if(!ok)
316
330
                return;
317
331