Skip to content

Commit f3c1088

Browse files
author
Jim Hamill
committed
Almost have saved queries working
1 parent aa2014e commit f3c1088

5 files changed

+62
-294
lines changed

QueryWidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ void QueryWidget::setDatabase(QSqlDatabase *database)
3838

3939
// Setup the model
4040
m_model = new QSqlQueryModel(this);
41+
42+
// Setup saved query widget
43+
ui->savedQueryWidget->setDatabase(m_database);
4144
}
4245

4346
void QueryWidget::on_runButton_clicked()

QuteSQL.pro.user

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE QtCreatorProject>
3-
<!-- Written by QtCreator 3.1.1, 2015-08-03T09:17:14. -->
3+
<!-- Written by QtCreator 3.0.1, 2015-08-07T01:45:55. -->
44
<qtcreator>
55
<data>
66
<variable>ProjectExplorer.Project.ActiveTarget</variable>
@@ -29,12 +29,9 @@
2929
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
3030
<value type="int" key="EditorConfiguration.IndentSize">4</value>
3131
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
32-
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
33-
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
3432
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
3533
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
3634
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
37-
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
3835
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
3936
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
4037
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
@@ -56,12 +53,12 @@
5653
<valuemap type="QVariantMap">
5754
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
5855
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
59-
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{7ee6283a-f0b0-4069-8609-db7d69b322b9}</value>
60-
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
56+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{e731c9d2-ba7c-4ecc-b269-fca0723ae01c}</value>
57+
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
6158
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
6259
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
6360
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
64-
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/jimtendo/Downloads/build-QuteSQL-Desktop-Debug</value>
61+
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/jimtendo/Projects/QuteSQL/build-QuteSQL-Desktop-Debug</value>
6562
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
6663
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
6764
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
@@ -120,7 +117,7 @@
120117
<value type="bool" key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild">true</value>
121118
</valuemap>
122119
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.1">
123-
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/jimtendo/Downloads/build-QuteSQL-Desktop-Release</value>
120+
<value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/jimtendo/Projects/QuteSQL/build-QuteSQL-Desktop-Release</value>
124121
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
125122
<valuemap type="QVariantMap" key="ProjectExplorer.BuildStepList.Step.0">
126123
<value type="bool" key="ProjectExplorer.BuildStep.Enabled">true</value>
@@ -232,15 +229,15 @@
232229
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
233230
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">QuteSQL</value>
234231
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
235-
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/jimtendo/Downloads/qutesql/QuteSQL.pro</value>
232+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">Qt4ProjectManager.Qt4RunConfiguration:/home/jimtendo/Projects/QuteSQL/QuteSQL/QuteSQL.pro</value>
236233
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments"></value>
237234
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">QuteSQL.pro</value>
238235
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
239236
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal">false</value>
240237
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
241238
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
242-
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
243-
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
239+
<value type="bool" key="RunConfiguration.UseCppDebugger">true</value>
240+
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">false</value>
244241
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
245242
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
246243
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
@@ -254,7 +251,7 @@
254251
</data>
255252
<data>
256253
<variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
257-
<value type="QByteArray">{a42fd8f5-1194-4943-a8cb-3773f0ca6eec}</value>
254+
<value type="QByteArray">{4810a72e-23eb-46ef-9a21-cb6d8c446851}</value>
258255
</data>
259256
<data>
260257
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>

0 commit comments

Comments
 (0)