GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
AccountComboBox.cpp
Go to the documentation of this file.
1
2
3#include "../Eng/AccountComboModel.h"
4
5#include "AccountComboBox.h"
6
9{
10 setModel( std::make_shared< GCW::Eng::AccountComboModel >() );
11 setModelColumn( 1 );
12
13} // endAccountComboBox()
14
15auto
17valueGuid()-> std::string
18{
19 return
20 Wt::asString( model()-> data( currentIndex(), 0 ) ).toUTF8() ;
21
22} // endvalueGuid()-> std::string
23
24
25
auto valueGuid() -> std::string
void setModelColumn(int index)
void setModel(const std::shared_ptr< WAbstractItemModel > model)
std::string toUTF8() const
WString asString(const cpp17::any &v, const WString &formatString=WString())