浏览代码

Remove compare profile button

Neal Wilson 7 年前
父节点
当前提交
6f3fecc65f
共有 1 个文件被更改,包括 0 次插入21 次删除
  1. 0
    21
      config/Windows/batchdetailsnew.xml

+ 0
- 21
config/Windows/batchdetailsnew.xml 查看文件

@@ -2,7 +2,6 @@
2 2
     <layout type="vertical">
3 3
         <layout type="horizontal">
4 4
             <button type="push" id="target" name="Load profile as target" />
5
-            <button type="push" id="compare" name="Compare profile" />
6 5
             <stretch />
7 6
             <label>Search:</label>
8 7
             <line id="search" />
@@ -145,9 +144,7 @@
145 144
             });
146 145
             var fileID;
147 146
             var target = findChildObject(this, 'target');
148
-            var compare = findChildObject(this, 'compare');
149 147
             if(typeof(Windows.loggingWindow) == "undefined") {
150
-                compare.enabled = false;
151 148
                 target.enabled = false;
152 149
             }
153 150
             var tableReference;
@@ -157,24 +154,6 @@
157 154
             var approval;
158 155
             var annotation;
159 156
             var roastWeight;
160
-            compare.clicked.connect(function() {
161
-                var query = new QSqlQuery;
162
-                query.prepare("SELECT file, name FROM files WHERE id = :id");
163
-                query.bind(":id", Number(fileID));
164
-                query.exec();
165
-                query.next();
166
-                var buffer = new QBuffer(query.value(0));
167
-                var pname = query.value(1);
168
-                query = query.invalidate();
169
-                var startSeries = Number(QSettings.value('cseries', 3));
170
-                var nextSeries = startSeries + 2;
171
-                QSettings.setValue('cseries', nextSeries);
172
-                var input = new XMLInput(buffer, startSeries);
173
-                var graph = findChildObject(Windows.loggingWindow, 'graph');
174
-                input.measure.connect(graph.newMeasurement);
175
-                input.input();
176
-                query = query.invalidate();
177
-            });
178 157
             target.clicked.connect(function() {
179 158
                 var query = new QSqlQuery;
180 159
                 query.prepare("SELECT file, name FROM files WHERE id = :id");

正在加载...
取消
保存