QTfrontend/ui/page/pagevideos.cpp
changeset 12483 a830a92b6c5c
parent 12472 821732e6413d
child 12897 fc47fc4af6bd
equal deleted inserted replaced
12482:eeeb7e8de95c 12483:a830a92b6c5c
   108 QLayout * PageVideos::bodyLayoutDefinition()
   108 QLayout * PageVideos::bodyLayoutDefinition()
   109 {
   109 {
   110     QGridLayout * pPageLayout = new QGridLayout();
   110     QGridLayout * pPageLayout = new QGridLayout();
   111     pPageLayout->setColumnStretch(0, 1);
   111     pPageLayout->setColumnStretch(0, 1);
   112     pPageLayout->setColumnStretch(1, 2);
   112     pPageLayout->setColumnStretch(1, 2);
   113     QString pathIcon = ":/res/Videos.png";
       
   114 
   113 
   115     // list of videos
   114     // list of videos
   116     {
   115     {
   117         IconedGroupBox* pTableGroup = new IconedGroupBox(this);
   116         IconedGroupBox* pTableGroup = new IconedGroupBox(this);
   118         pTableGroup->setIcon(QIcon(pathIcon));
   117         pTableGroup->setIcon(QIcon(":/res/Videos.png"));
   119         pTableGroup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   118         pTableGroup->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
   120         pTableGroup->setTitle(QGroupBox::tr("Videos"));
   119         pTableGroup->setTitle(QGroupBox::tr("Videos"));
   121 
   120 
   122         QStringList columns;
   121         QStringList columns;
   123         columns << tr("Name");
   122         columns << tr("Name");
   150     }
   149     }
   151 
   150 
   152     // description
   151     // description
   153     {
   152     {
   154         IconedGroupBox* pDescGroup = new IconedGroupBox(this);
   153         IconedGroupBox* pDescGroup = new IconedGroupBox(this);
   155         pDescGroup->setIcon(QIcon(pathIcon));
   154         pDescGroup->setIcon(QIcon(":/res/miscicon.png"));
   156         pDescGroup->setTitle(QGroupBox::tr("Description"));
   155         pDescGroup->setTitle(QGroupBox::tr("Description"));
   157 
   156 
   158         QVBoxLayout* pDescLayout = new QVBoxLayout(pDescGroup);
   157         QVBoxLayout* pDescLayout = new QVBoxLayout(pDescGroup);
   159         QHBoxLayout* pBottomDescLayout = new QHBoxLayout(0); // buttons
   158         QHBoxLayout* pBottomDescLayout = new QHBoxLayout(0); // buttons
   160 
   159