Skip to content

Commit

Permalink
Merge 12503bc into 4a6afbe
Browse files Browse the repository at this point in the history
  • Loading branch information
aroquemaurel committed Mar 3, 2015
2 parents 4a6afbe + 12503bc commit c7c01c9
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 32 deletions.
2 changes: 1 addition & 1 deletion fact-team.github.io
8 changes: 8 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ void MainWindow::removeDoc() {
removeItem(ui->tblQuotes, ItemType(ItemType::BILLING, "document"));
}

void MainWindow::generateTex()
{
QModelIndex ls = ui->tblQuotes->selectionModel()->selectedRows().first();
int pid = ui->tblQuotes->model()->data(ls,Qt::DisplayRole).toInt();
Billing(pid).generateTex();

}

void MainWindow::search(QString text)
{
Search s;
Expand Down
2 changes: 2 additions & 0 deletions src/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ public slots:
* @brief MainWindow::editQuote Edit the qupte or
*/
//void editQuote();

void generateTex();
private slots:
/**
* @brief MainWindow::openContextualMenuTable open contextual menu
Expand Down
79 changes: 48 additions & 31 deletions src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
<x>0</x>
<y>0</y>
<width>1237</width>
<height>20</height>
<height>19</height>
</rect>
</property>
<widget class="QMenu" name="menuFichier">
Expand Down Expand Up @@ -798,8 +798,8 @@ border: 1px solid #bbb;</string>
<slot>editCustomer()</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>125</y>
<x>910</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>764</x>
Expand All @@ -814,8 +814,8 @@ border: 1px solid #bbb;</string>
<slot>removeCustomer()</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>125</y>
<x>823</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>280</x>
Expand Down Expand Up @@ -862,8 +862,8 @@ border: 1px solid #bbb;</string>
<slot>addCustomer()</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>125</y>
<x>595</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>406</x>
Expand All @@ -878,8 +878,8 @@ border: 1px solid #bbb;</string>
<slot>newProject()</slot>
<hints>
<hint type="sourcelabel">
<x>397</x>
<y>125</y>
<x>725</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>720</x>
Expand Down Expand Up @@ -1054,8 +1054,8 @@ border: 1px solid #bbb;</string>
<slot>projectsTableToDocsTable()</slot>
<hints>
<hint type="sourcelabel">
<x>388</x>
<y>116</y>
<x>686</x>
<y>240</y>
</hint>
<hint type="destinationlabel">
<x>920</x>
Expand All @@ -1070,8 +1070,8 @@ border: 1px solid #bbb;</string>
<slot>backToProjectsTable()</slot>
<hints>
<hint type="sourcelabel">
<x>583</x>
<y>121</y>
<x>588</x>
<y>119</y>
</hint>
<hint type="destinationlabel">
<x>672</x>
Expand All @@ -1086,8 +1086,8 @@ border: 1px solid #bbb;</string>
<slot>newProject()</slot>
<hints>
<hint type="sourcelabel">
<x>488</x>
<y>116</y>
<x>916</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>797</x>
Expand All @@ -1102,8 +1102,8 @@ border: 1px solid #bbb;</string>
<slot>editProject()</slot>
<hints>
<hint type="sourcelabel">
<x>488</x>
<y>116</y>
<x>916</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>738</x>
Expand All @@ -1118,8 +1118,8 @@ border: 1px solid #bbb;</string>
<slot>removeProject()</slot>
<hints>
<hint type="sourcelabel">
<x>488</x>
<y>116</y>
<x>916</x>
<y>543</y>
</hint>
<hint type="destinationlabel">
<x>0</x>
Expand Down Expand Up @@ -1166,8 +1166,8 @@ border: 1px solid #bbb;</string>
<slot>changeProjectsTable()</slot>
<hints>
<hint type="sourcelabel">
<x>388</x>
<y>116</y>
<x>686</x>
<y>240</y>
</hint>
<hint type="destinationlabel">
<x>20</x>
Expand Down Expand Up @@ -1250,8 +1250,8 @@ border: 1px solid #bbb;</string>
<y>255</y>
</hint>
<hint type="destinationlabel">
<x>80</x>
<y>183</y>
<x>92</x>
<y>180</y>
</hint>
</hints>
</connection>
Expand Down Expand Up @@ -1282,8 +1282,8 @@ border: 1px solid #bbb;</string>
<y>255</y>
</hint>
<hint type="destinationlabel">
<x>127</x>
<y>252</y>
<x>139</x>
<y>249</y>
</hint>
</hints>
</connection>
Expand All @@ -1298,8 +1298,8 @@ border: 1px solid #bbb;</string>
<y>256</y>
</hint>
<hint type="destinationlabel">
<x>150</x>
<y>274</y>
<x>162</x>
<y>272</y>
</hint>
</hints>
</connection>
Expand Down Expand Up @@ -1330,8 +1330,8 @@ border: 1px solid #bbb;</string>
<y>211</y>
</hint>
<hint type="destinationlabel">
<x>164</x>
<y>183</y>
<x>176</x>
<y>180</y>
</hint>
</hints>
</connection>
Expand All @@ -1346,8 +1346,8 @@ border: 1px solid #bbb;</string>
<y>211</y>
</hint>
<hint type="destinationlabel">
<x>164</x>
<y>206</y>
<x>176</x>
<y>203</y>
</hint>
</hints>
</connection>
Expand Down Expand Up @@ -1447,6 +1447,22 @@ border: 1px solid #bbb;</string>
</hint>
</hints>
</connection>
<connection>
<sender>btnLatex</sender>
<signal>released()</signal>
<receiver>MainWindow</receiver>
<slot>generateTex()</slot>
<hints>
<hint type="sourcelabel">
<x>828</x>
<y>522</y>
</hint>
<hint type="destinationlabel">
<x>827</x>
<y>693</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>addCustomer()</slot>
Expand Down Expand Up @@ -1479,5 +1495,6 @@ border: 1px solid #bbb;</string>
<slot>changeDocsTable()</slot>
<slot>editQuote()</slot>
<slot>updateButtons()</slot>
<slot>generateTex()</slot>
</slots>
</ui>

0 comments on commit c7c01c9

Please sign in to comment.