~ubuntu-branches/ubuntu/wily/youker-assistant/wily

« back to all changes in this revision

Viewing changes to info/cpuwidget.cpp

  • Committer: Package Import Robot
  • Author(s): Kobe Lee (kylinkobe)
  • Date: 2015-03-13 10:07:56 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20150313100756-9bgbo855p7d2ll5y
Tags: 2.0.1-0ubuntu1
* New upstream release:
  - Decrease CPU occupation.
  - Deal with system information access exceptions.
  - Improve UI.
  - General bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    scroll_widget = new ScrollWidget(this);
28
28
    scroll_widget->setGeometry(0, 0, 750, 403 - 3);
29
29
    this->initData();
30
 
    page = new ComputerPage(scroll_widget->zone, tr("CPU Info"));
31
 
    page->setMap(cpu_info_map, cpu_info_map.value("CpuVendor").toString().toUpper());
32
 
    page->initUI();
33
 
    scroll_widget->addScrollWidget(page);
 
30
    if(cpu_info_map.count() == 1 && cpu_info_map.contains("kylinkobe"))
 
31
    {
 
32
        page = NULL;
 
33
    }
 
34
    else {
 
35
        page = new ComputerPage(scroll_widget->zone, tr("CPU Info"));
 
36
        page->setMap(cpu_info_map, cpu_info_map.value("CpuVendor").toString().toUpper());
 
37
        page->initUI();
 
38
        scroll_widget->addScrollWidget(page);
 
39
    }
34
40
}
35
41
 
36
42
void CpuWidget::initData()