~ubuntu-sdk-team/qtcreator-plugin-remotelinux/trunk

« back to all changes in this revision

Viewing changes to src/qnx/bardescriptoreditorassetswidget.h

  • Committer: CI bot
  • Author(s): Benjamin Zeller
  • Date: 2014-06-16 10:28:43 UTC
  • mfrom: (4.2.4 remotelinux)
  • Revision ID: ps-jenkins@lists.canonical.com-20140616102843-8juvmjvzwlzsboyw
Migrating to Qt5.3 and QtC 3.1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
namespace Qnx {
43
43
namespace Internal {
44
44
 
45
 
namespace Ui {
46
 
class BarDescriptorEditorAssetsWidget;
47
 
}
 
45
namespace Ui { class BarDescriptorEditorAssetsWidget; }
48
46
 
49
47
class BarDescriptorAsset;
50
48
 
56
54
    explicit BarDescriptorEditorAssetsWidget(QWidget *parent = 0);
57
55
    ~BarDescriptorEditorAssetsWidget();
58
56
 
59
 
    void clear();
60
 
 
61
 
    void addAsset(const BarDescriptorAsset &asset);
62
 
    QList<BarDescriptorAsset> assets() const;
63
 
 
64
57
    QStandardItemModel *assetsModel() const;
65
58
 
66
59
public slots:
67
60
    void addAsset(const QString &fullPath);
68
61
    void removeAsset(const QString &fullPath);
69
62
 
 
63
protected:
 
64
    void updateWidgetValue(BarDescriptorDocument::Tag tag, const QVariant &value);
 
65
    void emitChanged(BarDescriptorDocument::Tag tag);
 
66
 
70
67
private slots:
71
68
    void addNewAsset();
72
69
    void removeSelectedAsset();
73
70
    void updateEntryCheckState(QStandardItem *item);
74
71
 
75
72
private:
76
 
    void connectAssetsModel();
77
 
    void disconnectAssetsModel();
78
 
 
79
 
    void addAssetInternal(const BarDescriptorAsset &asset);
 
73
    void clear();
 
74
    void addAsset(const BarDescriptorAsset &asset);
80
75
    bool hasAsset(const BarDescriptorAsset &asset);
81
76
 
82
77
    Ui::BarDescriptorEditorAssetsWidget *m_ui;