GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
DelegateValue.cpp
Go to the documentation of this file.
1#line 2 "src/Gui/AccountRegister/DelegateValue.cpp"
2
3#include "Editor.h"
4#include "DelegateValue.h"
5
6/* * * * * * * * * * * * * * * * * * * * * * * * * * */
7
10{
11// std::cout << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << "(): " << std::endl;
12}
13
16{
17// std::cout << __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << "(): " << std::endl;
18}
19
20auto
22createEditor( const Wt::WModelIndex & _index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags ) const-> std::unique_ptr< Wt::WWidget >
23{
24#ifdef NEVER
25 std::cout << __FILE__ << ":" << __LINE__
26 << "(): " << _index.row() << "," << _index.column()
27 << " ValueDelegate::" << __FUNCTION__
28 << " '" << Wt::asString( _index.data( Wt::ItemDataRole::Edit ) ) << "'"
29 << std::endl;
30#endif
31
32 auto retVal = DelegateBase::createEditor( _index, _flags );
33 auto cw = dynamic_cast< Wt::WContainerWidget* >( retVal.get() );
34 auto lineEdit = dynamic_cast< Wt::WLineEdit* >( cw-> widget(0) );
35
36 return retVal;
37
38} // endcreateEditor( const Wt::WModelIndex & _index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags ) const-> std::unique_ptr< Wt::WWidget >
39
40
41
virtual auto createEditor(const Wt::WModelIndex &index, Wt::WFlags< Wt::ViewItemRenderFlag > flags) const -> std::unique_ptr< Wt::WWidget >
virtual auto createEditor(const Wt::WModelIndex &_index, Wt::WFlags< Wt::ViewItemRenderFlag > _flags) const -> std::unique_ptr< Wt::WWidget >
static constexpr const int Edit
WString asString(const cpp17::any &v, const WString &formatString=WString())