Changeset 15 in flair-src for trunk/tools/FlairGCS/src/Tab.cpp


Ignore:
Timestamp:
Apr 8, 2016, 3:40:57 PM (5 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/Tab.cpp

    r10 r15  
    77#include <QGridLayout>
    88
    9 Tab::Tab(TabWidget* parent,QString name,int position): Layout(new QWidget(),parent,name,"Tab") {
    10     parent_tab=parent;
    11     onglet = getQGridLayout()->parentWidget();
    12     onglet->setObjectName(name);
    13     if(position==-1) {
    14         parent->tab->addTab(onglet, name);
    15     } else {
    16         parent->tab->insertTab(position,onglet, name);
    17     }
     9Tab::Tab(TabWidget *parent, QString name, int position)
     10    : Layout(new QWidget(), parent, name, "Tab") {
     11  parent_tab = parent;
     12  onglet = getQGridLayout()->parentWidget();
     13  onglet->setObjectName(name);
     14  if (position == -1) {
     15    parent->tab->addTab(onglet, name);
     16  } else {
     17    parent->tab->insertTab(position, onglet, name);
     18  }
    1819}
    1920
    20 Tab::~Tab() {
    21     parent_tab->tab->removeTab(parent_tab->tab->indexOf(onglet));
    22 }
     21Tab::~Tab() { parent_tab->tab->removeTab(parent_tab->tab->indexOf(onglet)); }
Note: See TracChangeset for help on using the changeset viewer.