Clipper On Line • Ver Tópico - Correção na HBQT por Ryszard Glab

Correção na HBQT por Ryszard Glab

Projeto Harbour QT - HbQt, HbXBP e HbIDE

Moderador: Moderadores

 

Correção na HBQT por Ryszard Glab

Mensagempor Itamar M. Lins Jr. » 17 Fev 2015 10:57

2008-02-02 23:40 UTC+0100 Ryszard Glab (harbour//rglab.pl)
Till date he is remembered for his in-depth knowledge about programming
concepts and specifically Harbour. He is finishing a big project
heavily based on HbQt. This patch highlights the state of HbQt to
the effect that now we are production ready.

Ainda vem gente aqui falar mal... só rindo mesmo...

2015-02-16 20:59 UTC-0800 Pritpal Bedi (bedipritpal at hotmail.com)(r405)
  * hbqt/hbmk2_qt.hb
    % Changed: to use stdout and/or stderr while catching result of
       external process executed to detect the Qt version.
       
  * hbqt/qtcore/qth/QByteArray.qth
    % Changed: const char * constData()/data() returns data in proper length
       by changing hb_retc(...) to hb_retclen(..., p->size()).

  * hbqt/qtcore/qth/QMimeData.qth
    % Changed: ( an HbQt Extention )
       QVariant imageData () const
          =>
       QImage imageData () const
       It is always tricky to manage all types in QVariant what Qt provides.
       Also as the method name implies, one expects that it will return the
       immage associated with QMimeData. And hence this simplification.

    @Ryszard Glab
       Other big stopper was pasting images from the clipboard. Current code
       stores QImage in QVariant variable however QVariant has no method to convert
       it to QImage. According to the Qt documentation the only solution is casting
       at C++ level. 

  * hbqt/qtgui/hbqt_hbqabstractitemmodel.cpp
  * hbqt/qtgui/hbqt_hbqabstractitemmodel.h
    + Added: bool setData ( const QModelIndex & index, const QVariant & value, int role = Qt::EditRole );
       It is a handy mechanism to write back the values of a field just as
       those are retrieved via getData method.

    @Ryszard Glab
       The really big problem with current hbqt code is lack of in-place editing
       features of QTableView. Althought QTableView can edit cells using standard
       build-in delegates (it work if you return Flags with Qt_ItemIsEditable and
       use Qt_EditRole to get value from cell) however there is no possibility to
       get back edited value from the delegate editor. Please consider the
       following patch to extend current code to return the edited value to
       codeblock used in hb_qabstractitemmodel - it requires the the codeblock have
       to accept additional fifth parameter.

  ; The above patch is submitted by Ryszard Glab, a big thank you.
     For those who are new to Harbour and HbQt - an introduction to Ryszard Glab.
     Ryszard is one of the pioneers in maturing Harbour since its birth until 2008.
     Below is his last commit in Harbour:
        2008-02-02 23:40 UTC+0100 Ryszard Glab (harbour//rglab.pl)
     Till date he is remembered for his in-depth knowledge about programming
     concepts and specifically Harbour. He is finishing a big project
     heavily based on HbQt. This patch highlights the state of HbQt to
     the effect that now we are production ready.

     I have requested him if he could provide few screen-shots of HbQt based
     application with short description about its end-usage. That will certainly
     put HbQt on some higher plane.


Saudações,
Itamar M. Lins Jr.
Avatar de usuário

Itamar M. Lins Jr.
Colaborador

Colaborador
 
Mensagens: 4898
Data de registro: 30 Mai 2007 11:31
Cidade/Estado: Ilheus Bahia
Curtiu: 178 vezes
Mens.Curtidas: 276 vezes



Retornar para QtContribs - HBQT

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 2 visitantes


Ola Amigo, espero que meu site e forum tem lhe beneficiado, com exemplos e dicas de programacao.
Entao divulgue o link da Doacao abaixo para seus amigos e redes sociais ou faça uma doacao para o site forum...
MUITO OBRIGADO PELA SUA DOACAO!
Faça uma doação para o forum
cron
v
Olá visitante, seja bem-vindo ao Fórum Clipper On Line!
Efetue o seu login ou faça o seu Registro