Browse Source

style fixed

cl-refactor
arkpar 10 years ago
parent
commit
aa389db06f
  1. 4
      mix/FileIo.cpp
  2. 2
      mix/FileIo.h
  3. 4
      mix/qml/NewProjectDialog.qml
  4. 4
      mix/qml/StateDialog.qml
  5. 10
      mix/qml/TransactionDialog.qml

4
mix/FileIo.cpp

@ -42,7 +42,7 @@ QString FileIo::readFile(QString const& _url)
{
QUrl url(_url);
QFile file(url.path());
if(file.open(QIODevice::ReadOnly | QIODevice::Text))
if (file.open(QIODevice::ReadOnly | QIODevice::Text))
{
QTextStream stream(&file);
QString data = stream.readAll();
@ -57,7 +57,7 @@ void FileIo::writeFile(QString const& _url, QString const& _data)
{
QUrl url(_url);
QFile file(url.path());
if(file.open(QIODevice::WriteOnly | QIODevice::Text))
if (file.open(QIODevice::WriteOnly | QIODevice::Text))
{
QTextStream stream(&file);
stream << _data;

2
mix/FileIo.h

@ -30,7 +30,7 @@ namespace mix
{
///File services for QML
class FileIo : public QObject
class FileIo: public QObject
{
Q_OBJECT
Q_PROPERTY(QString homePath READ getHomePath CONSTANT)

4
mix/qml/NewProjectDialog.qml

@ -13,8 +13,8 @@ Window {
visible: false
property alias projectTitle : titleField.text
readonly property string projectPath : "file://" + pathField.text
property alias projectTitle: titleField.text
readonly property string projectPath: "file://" + pathField.text
signal accepted
function open() {

4
mix/qml/StateDialog.qml

@ -11,8 +11,8 @@ Window {
visible: false
property alias stateTitle : titleField.text
property alias stateBalance : balanceField.text
property alias stateTitle: titleField.text
property alias stateBalance: balanceField.text
property int stateIndex
property var stateTransactions: []
signal accepted

10
mix/qml/TransactionDialog.qml

@ -10,11 +10,11 @@ Window {
visible: false
property int transactionIndex
property alias transactionParams : paramsModel;
property alias gas : gasField.text;
property alias gasPrice : gasPriceField.text;
property alias transactionValue : valueField.text;
property alias functionId : functionComboBox.currentText;
property alias transactionParams: paramsModel;
property alias gas: gasField.text;
property alias gasPrice: gasPriceField.text;
property alias transactionValue: valueField.text;
property alias functionId: functionComboBox.currentText;
property var itemParams;
signal accepted;

Loading…
Cancel
Save