~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to app/kipiuploadwidget.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
31
31
// Local
32
32
#include "kipiinterface.h"
33
33
 
34
 
namespace Gwenview {
35
 
 
 
34
namespace Gwenview
 
35
{
36
36
 
37
37
KIPIUploadWidget::KIPIUploadWidget(KIPIInterface* interface, QWidget* parent)
38
38
: KIPI::UploadWidget(parent)
39
 
, mInterface(interface) {
40
 
        QLabel* label = new QLabel(this);
41
 
        KUrl url = mInterface->currentAlbum().uploadPath();
42
 
        label->setText(i18n("Images will be uploaded here:\n%1", url.pathOrUrl()));
43
 
        label->setWordWrap(true);
44
 
 
45
 
        QVBoxLayout* layout = new QVBoxLayout(this);
46
 
        layout->setMargin(0);
47
 
        layout->addWidget(label);
48
 
}
49
 
 
50
 
 
51
 
KIPI::ImageCollection KIPIUploadWidget::selectedImageCollection() const {
52
 
        return mInterface->currentAlbum();
53
 
}
54
 
 
55
 
 
56
 
 
 
39
, mInterface(interface)
 
40
{
 
41
    QLabel* label = new QLabel(this);
 
42
    KUrl url = mInterface->currentAlbum().uploadPath();
 
43
    label->setText(i18n("Images will be uploaded here:\n%1", url.pathOrUrl()));
 
44
    label->setWordWrap(true);
 
45
 
 
46
    QVBoxLayout* layout = new QVBoxLayout(this);
 
47
    layout->setMargin(0);
 
48
    layout->addWidget(label);
 
49
}
 
50
 
 
51
KIPI::ImageCollection KIPIUploadWidget::selectedImageCollection() const
 
52
{
 
53
    return mInterface->currentAlbum();
 
54
}
57
55
 
58
56
} // namespace