GUI: fixed a few bugs in SearchListViewTable + fixed a compile error with qMetaType
This commit is contained in:
parent
67513f78f9
commit
8f6cfd1516
|
@ -14,16 +14,17 @@ QString SearchListViewTable::paintContent(QPainter* painter, int_t rowBase, int
|
|||
if(!getRowCount())
|
||||
isaddr=false;
|
||||
const char* addrText = text.toUtf8().constData();
|
||||
if(!DbgIsValidExpression(addrText))
|
||||
isaddr=false;
|
||||
uint_t wVA = DbgValFromString(addrText);
|
||||
if(!DbgMemIsValidReadPtr(wVA))
|
||||
ULONGLONG val=0;
|
||||
uint_t wVA;
|
||||
if(sscanf(addrText, "%llX", &val)!=1)
|
||||
isaddr=false;
|
||||
else
|
||||
wVA=val;
|
||||
if(col==0 && isaddr)
|
||||
{
|
||||
BPXTYPE bpxtype=DbgGetBpxTypeAt(wVA);
|
||||
bool isbookmark=DbgGetBookmarkAt(wVA);
|
||||
|
||||
painter->setPen(ConfigColor("AbstractTableViewTextColor"));
|
||||
if(!isbookmark)
|
||||
{
|
||||
if(bpxtype&bp_normal) //normal breakpoint
|
||||
|
|
|
@ -50,6 +50,7 @@ int main(int argc, char *argv[])
|
|||
qRegisterMetaType<uint_t>("uint_t");
|
||||
|
||||
qRegisterMetaType<byte_t>("byte_t");
|
||||
qRegisterMetaType<DBGSTATE>("DBGSTATE");
|
||||
|
||||
qRegisterMetaType<DBGSTATE>("DBGSTATE");
|
||||
|
||||
|
|
Loading…
Reference in New Issue