~ubuntu-branches/ubuntu/wily/unity-2d/wily

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/lens.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-25 18:16:57 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110825181657-opb29rqsxae3i98f
Tags: 4.2.0-0ubuntu1
* New upstream release:
  - [panel] application menus do not appear on first hover after dismissal
    (lp: #825262)
  - [dash] Lens icons badly scaled (lp: #825368)
  - [panel] indicators are shifted offscreen to the right (lp: #827673)
  - [panel] scrubbing from system indicators to menubar should be possible
    (lp: #706903)
  - [launcher] Closed applications don't get their launcher counts cleared
    (lp: #767367)
  - [dash] selected item should not be underlined but use the same 
    treatment as unity (lp: #817456)
  - [dash] categories should be collapsed by default (lp: #827214)
  - [dash] Ratings filter (lp: #831855)
  - [dash] Multirange filter (lp: #831856)
  - [dash] ToggleButton filter (lp: #831857)
  - [dash] Icon size must be bigger to match the mockups (lp: #831858)
  - [dash] "Refine search" right margin should be 15 pixels (lp: #832058)
  - [dash] "Refine search" should be "Filter results" (lp: #832060)
  - [dash] Font sizes should match new design (lp: #832114)
  - [panel] Glitch: application menu appearing when pressing the BFB 
    (lp: #825060)
  - [panel] Glitch: application menus are quickly opened after a drag gesture
    (lp: #825267)
  - [dash] File thumbnails aspect ratio is not respected (lp: #832204)
* debian/control: require current the current versions of nux and unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
// libunity-2d
24
24
#include <debug_p.h>
25
25
#include "launcherapplication.h"
 
26
#include "filters.h"
26
27
 
27
28
// Qt
28
29
#include <QUrl>
31
32
Lens::Lens(QObject *parent) :
32
33
    QObject(parent)
33
34
{
34
 
    m_results = new DeeListModel;
35
 
    m_globalResults = new DeeListModel;
36
 
    m_categories = new DeeListModel;
 
35
    m_results = new DeeListModel(this);
 
36
    m_globalResults = new DeeListModel(this);
 
37
    m_categories = new DeeListModel(this);
37
38
}
38
39
 
39
40
QString Lens::id() const
111
112
    return m_unityLens->active();
112
113
}
113
114
 
 
115
Filters* Lens::filters() const
 
116
{
 
117
    return m_filters;
 
118
}
 
119
 
114
120
QString Lens::searchQuery() const
115
121
{
116
122
    return m_searchQuery;
201
207
{
202
208
    if (m_unityLens != NULL) {
203
209
        // FIXME: should disconnect from m_unityLens's signals
 
210
        delete m_filters;
204
211
    }
205
212
 
206
213
    // FIXME: should emit change notification signals for all properties
207
214
 
208
215
    m_unityLens = lens;
209
216
 
 
217
    m_filters = new Filters(m_unityLens->filters, this);
 
218
 
210
219
    m_results->setName(QString::fromStdString(m_unityLens->results()->swarm_name));
211
220
    m_globalResults->setName(QString::fromStdString(m_unityLens->global_results()->swarm_name));
212
221
    m_categories->setName(QString::fromStdString(m_unityLens->categories()->swarm_name));