Changeset - 2fb7fd9515d1
[Not reviewed]
default
0 2 0
Hasan Yavuz Ă–ZDERYA - 9 years ago 2016-06-14 21:53:37
hy@ozderya.net
increased default window hight and made sure ascii reader never reports number of channels as 0
2 files changed with 9 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/asciireader.cpp
Show inline comments
 
@@ -33,11 +33,6 @@ AsciiReader::AsciiReader(QIODevice* devi
 

	
 
    _numOfChannels = _settingsWidget.numOfChannels();
 
    autoNumOfChannels = (_numOfChannels == NUMOFCHANNELS_AUTO);
 
    // do not allow '0'
 
    if (_numOfChannels == 0)
 
    {
 
        _numOfChannels = 1;
 
    }
 

	
 
    connect(&_settingsWidget, &AsciiReaderSettings::numOfChannelsChanged,
 
            [this](unsigned value)
 
@@ -60,8 +55,16 @@ QWidget* AsciiReader::settingsWidget()
 

	
 
unsigned AsciiReader::numOfChannels()
 
{
 
    // do not allow '0'
 
    if (_numOfChannels == 0)
 
    {
 
        return 1;
 
    }
 
    else
 
    {
 
    return _numOfChannels;
 
}
 
}
 

	
 
// TODO: this could be a part of AbstractReader
 
void AsciiReader::enable(bool enabled)
src/mainwindow.ui
Show inline comments
 
@@ -7,7 +7,7 @@
 
    <x>0</x>
 
    <y>0</y>
 
    <width>653</width>
 
    <height>534</height>
 
    <height>650</height>
 
   </rect>
 
  </property>
 
  <property name="windowTitle">
0 comments (0 inline, 0 general)