1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

Merge remote-tracking branch 'origin/next' into PipXtreme

This commit is contained in:
Brian Webb 2012-03-02 18:13:38 -07:00
commit a902cfa4d5
5 changed files with 19 additions and 11 deletions

View File

@ -239,6 +239,8 @@ int main(int argc, char **argv)
setrlimit(RLIMIT_NOFILE, &rl);
#endif
QApplication::setGraphicsSystem("raster");
SharedTools::QtSingleApplication app((QLatin1String(appNameC)), argc, argv);
QString locale = QLocale::system().name();

View File

@ -496,8 +496,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>648</width>
<height>802</height>
<width>626</width>
<height>834</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_23">
@ -11753,9 +11753,9 @@ border-radius: 4;
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>401</width>
<height>990</height>
<y>-402</y>
<width>626</width>
<height>1026</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_15">
@ -24709,7 +24709,7 @@ border-radius: 5;</string>
<string notr="true"/>
</property>
<property name="decimals">
<number>0</number>
<number>3</number>
</property>
<property name="maximum">
<double>1000000.000000000000000</double>
@ -24755,7 +24755,7 @@ border-radius: 5;</string>
<string notr="true"/>
</property>
<property name="decimals">
<number>0</number>
<number>3</number>
</property>
<property name="maximum">
<double>1000000.000000000000000</double>
@ -24801,7 +24801,7 @@ border-radius: 5;</string>
<string notr="true"/>
</property>
<property name="decimals">
<number>0</number>
<number>5</number>
</property>
<property name="maximum">
<double>1000000.000000000000000</double>
@ -25598,8 +25598,6 @@ border-radius: 4;
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>
<include location="../../coreplugin/core.qrc"/>
</resources>
<resources/>
<connections/>
</ui>

View File

@ -412,6 +412,7 @@ void ConfigTaskWidget::widgetsContentsChanged()
}
}
}
smartsave->resetIcons();
setDirty(true);
}
/**

View File

@ -192,6 +192,12 @@ void smartSaveButton::enableControls(bool value)
button->setEnabled(value);
}
void smartSaveButton::resetIcons()
{
foreach(QPushButton * button,buttonList.keys())
button->setIcon(QIcon());
}
void smartSaveButton::apply()
{
processOperation(NULL,false);

View File

@ -52,6 +52,7 @@ public:
void removeAllObjects();
void addApplyButton(QPushButton *apply);
void addSaveButton(QPushButton *save);
void resetIcons();
signals:
void preProcessOperations();
void saveSuccessfull();