Changeset - 10c58812dac5
[Not reviewed]
Hasan Yavuz Ă–ZDERYA - 10 years ago 2016-03-22 18:03:56
hy@ozderya.net
added channel name list to plot tab
2 files changed with 17 insertions and 16 deletions:
0 comments (0 inline, 0 general)
src/mainwindow.cpp
Show inline comments
 
@@ -164,12 +164,9 @@ MainWindow::MainWindow(QWidget *parent) 
 
    connect(&channelMan, &ChannelManager::channelNameChanged,
 
            this, &MainWindow::onChannelNameChanged);
 

	
 
    // TODO: move this into the plot tab
 
    QListView* channelNamesView = new QListView();
 
    channelNamesView->setModel(channelMan.channelNames());
 
    channelNamesView->show();
 
    ui->lvChannelNames->setModel(channelMan.channelNames());
 

	
 
    // init channel data and curve list
 
    // init curve list
 
    for (unsigned int i = 0; i < numOfChannels; i++)
 
    {
 
        curves.append(new QwtPlotCurve(channelMan.channelName(i)));
src/mainwindow.ui
Show inline comments
 
@@ -57,17 +57,21 @@
 
       </attribute>
 
       <layout class="QHBoxLayout" name="horizontalLayout_4">
 
        <item>
 
         <spacer name="horizontalSpacer_2">
 
          <property name="orientation">
 
           <enum>Qt::Horizontal</enum>
 
          </property>
 
          <property name="sizeHint" stdset="0">
 
           <size>
 
            <width>370</width>
 
            <height>20</height>
 
           </size>
 
          </property>
 
         </spacer>
 
         <layout class="QVBoxLayout" name="verticalLayout">
 
          <item>
 
           <widget class="QLabel" name="label_2">
 
            <property name="styleSheet">
 
             <string notr="true">font-weight: bold;</string>
 
            </property>
 
            <property name="text">
 
             <string>Channel Names:</string>
 
            </property>
 
           </widget>
 
          </item>
 
          <item>
 
           <widget class="QListView" name="lvChannelNames"/>
 
          </item>
 
         </layout>
 
        </item>
 
        <item>
 
         <widget class="Line" name="line">
0 comments (0 inline, 0 general)