qt: add network-specific style object

Mainly cleanups: Gets rid of isTestNet everywhere, by keeping track of network-specific theming in a central place.

Also makes GUI no longer dependent on the network ID enumeration, which alleviates concerns about #4802.
Здравствуйте друзья!Я не разбираюсь в этом.С уважением Махмет!

2014-10-09 23:07 GMT+04:00 Cory Fields <notifications@github.com>:

> In src/qt/bitcoin.cpp:
>
> > @@ -636,6 +635,8 @@ int main(int argc, char *argv[])
> >          PrintExceptionContinue(NULL, "Runaway exception");
> >          app.handleRunawayException(QString::fromStdString(strMiscWarning));
> >      }
> > +    delete networkStyle;
>
> It doesn't really matter, it was just a suggestion for readability.
>
> Out of curiosity though, why not just create a normal scoped object in
> main and pass around a pointer to it? I suspect I'm missing something
> obvious.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bitcoin/bitcoin/pull/5066/files#r18666838>.
>